@@ -300,7 +300,7 @@ impl Flow for BasicFlow {
300300 false
301301 }
302302
303- fn close_flow ( & mut self , _timestamp_us : i64 , cause : FlowExpireCause ) -> ( ) {
303+ fn close_flow ( & mut self , _timestamp_us : i64 , cause : FlowExpireCause ) {
304304 self . flow_expire_cause = cause;
305305 self . update_tcp_close_style ( cause) ;
306306 }
@@ -322,10 +322,9 @@ impl Flow for BasicFlow {
322322 }
323323
324324 fn get_features ( ) -> String {
325- format ! (
326- "flow_id,source_ip,source_port,destination_ip,destination_port,protocol,\
325+ "flow_id,source_ip,source_port,destination_ip,destination_port,protocol,\
327326 first_timestamp,last_timestamp,duration,flow_expire_cause"
328- )
327+ . to_string ( )
329328 }
330329
331330 fn dump_without_contamination ( & self ) -> String {
@@ -340,7 +339,7 @@ impl Flow for BasicFlow {
340339 }
341340
342341 fn get_features_without_contamination ( ) -> String {
343- format ! ( "src_port_iana,dst_port_iana,protocol,duration,flow_expire_cause" )
342+ "src_port_iana,dst_port_iana,protocol,duration,flow_expire_cause" . to_string ( )
344343 }
345344
346345 fn get_first_timestamp_us ( & self ) -> i64 {
0 commit comments