@@ -655,12 +655,12 @@ pub fn output_additional_afterfact(
655655 )
656656 . ok ( ) ;
657657
658- if afterfact_info. tl_starttime . is_some ( ) {
658+ if let Some ( tl_starttime ) = afterfact_info. tl_starttime {
659659 output_and_data_stack_for_html (
660660 & format ! (
661661 "First timestamp: {}" ,
662662 utils:: format_time(
663- & afterfact_info . tl_starttime. unwrap ( ) ,
663+ & tl_starttime,
664664 false ,
665665 & stored_static
666666 . output_option
@@ -673,12 +673,12 @@ pub fn output_additional_afterfact(
673673 & stored_static. html_report_flag ,
674674 ) ;
675675 }
676- if afterfact_info. tl_endtime . is_some ( ) {
676+ if let Some ( tl_endtime ) = afterfact_info. tl_endtime {
677677 output_and_data_stack_for_html (
678678 & format ! (
679679 "Last timestamp: {}" ,
680680 utils:: format_time(
681- & afterfact_info . tl_endtime. unwrap ( ) ,
681+ & tl_endtime,
682682 false ,
683683 & stored_static
684684 . output_option
@@ -692,12 +692,12 @@ pub fn output_additional_afterfact(
692692 ) ;
693693 println ! ( ) ;
694694 }
695- if afterfact_info. detect_starttime . is_some ( ) {
695+ if let Some ( detect_starttime ) = afterfact_info. detect_starttime {
696696 output_and_data_stack_for_html (
697697 & format ! (
698698 "First detection: {}" ,
699699 utils:: format_time(
700- & afterfact_info . detect_starttime. unwrap ( ) ,
700+ & detect_starttime,
701701 false ,
702702 & stored_static
703703 . output_option
@@ -710,12 +710,12 @@ pub fn output_additional_afterfact(
710710 & stored_static. html_report_flag ,
711711 ) ;
712712 }
713- if afterfact_info. detect_endtime . is_some ( ) {
713+ if let Some ( detect_endtime ) = afterfact_info. detect_endtime {
714714 output_and_data_stack_for_html (
715715 & format ! (
716716 "Last detection: {}" ,
717717 utils:: format_time(
718- & afterfact_info . detect_endtime. unwrap ( ) ,
718+ & detect_endtime,
719719 false ,
720720 & stored_static
721721 . output_option
@@ -891,11 +891,11 @@ pub fn output_additional_afterfact(
891891 stored_static. html_report_flag ,
892892 ) ;
893893 println ! ( ) ;
894- if afterfact_info. tl_starttime . is_some ( ) {
894+ if let Some ( tl_starttime ) = afterfact_info. tl_starttime {
895895 let ts = format ! (
896896 "First timestamp: {}" ,
897897 format_time(
898- & afterfact_info . tl_starttime. unwrap ( ) ,
898+ & tl_starttime,
899899 false ,
900900 & stored_static
901901 . output_option
@@ -912,11 +912,11 @@ pub fn output_additional_afterfact(
912912 )
913913 . ok ( ) ;
914914 }
915- if afterfact_info. tl_endtime . is_some ( ) {
915+ if let Some ( tl_endtime ) = afterfact_info. tl_endtime {
916916 let ts = format ! (
917917 "Last timestamp: {}" ,
918918 format_time(
919- & afterfact_info . tl_endtime. unwrap ( ) ,
919+ & tl_endtime,
920920 false ,
921921 & stored_static
922922 . output_option
@@ -934,11 +934,11 @@ pub fn output_additional_afterfact(
934934 . ok ( ) ;
935935 println ! ( ) ;
936936 }
937- if afterfact_info. detect_starttime . is_some ( ) {
937+ if let Some ( detect_starttime ) = afterfact_info. detect_starttime {
938938 let ts = format ! (
939939 "First detection: {}" ,
940940 format_time(
941- & afterfact_info . detect_starttime. unwrap ( ) ,
941+ & detect_starttime,
942942 false ,
943943 & stored_static
944944 . output_option
@@ -955,11 +955,11 @@ pub fn output_additional_afterfact(
955955 )
956956 . ok ( ) ;
957957 }
958- if afterfact_info. detect_endtime . is_some ( ) {
958+ if let Some ( detect_endtime ) = afterfact_info. detect_endtime {
959959 let ts = format ! (
960960 "Last detection: {}" ,
961961 format_time(
962- & afterfact_info . detect_endtime. unwrap ( ) ,
962+ & detect_endtime,
963963 false ,
964964 & stored_static
965965 . output_option
0 commit comments