@@ -2,13 +2,13 @@ use std::{
22 collections:: HashMap ,
33 os:: unix:: process:: ExitStatusExt ,
44 process:: Stdio ,
5- sync:: { atomic :: AtomicU64 , Arc , Mutex } ,
5+ sync:: { Arc , Mutex , atomic :: AtomicU64 } ,
66 time:: { SystemTime , UNIX_EPOCH } ,
77} ;
88
99use actix_web:: Result ;
1010use clap:: Parser ;
11- use lazy_regex:: { lazy_regex , Lazy } ;
11+ use lazy_regex:: { Lazy , lazy_regex } ;
1212use regex:: Regex ;
1313use serde:: Serialize ;
1414use tokio:: { io:: AsyncBufReadExt , sync:: RwLock } ;
@@ -18,7 +18,7 @@ static STATS_PARSER: Lazy<Regex> = lazy_regex!(
1818) ;
1919static LOOT_PARSER : Lazy < Regex > = lazy_regex ! ( r"(?m)^.+\[(.+)\]\s\(([^)]+)\)(\s<(.+)>)?\s(.+)" ) ;
2020
21- use crate :: { session:: Error , utils:: parse_multiple_targets, Options } ;
21+ use crate :: { Options , session:: Error , utils:: parse_multiple_targets} ;
2222
2323pub ( crate ) type SharedState = Arc < RwLock < Sessions > > ;
2424
@@ -220,7 +220,10 @@ impl Session {
220220 * child_completed. lock ( ) . unwrap ( ) =
221221 Some ( Completion :: with_status ( code. code ( ) . unwrap_or ( -1 ) ) ) ;
222222 } else {
223- log:: error!( "[{id}] child process {process_id} completed with code {code} (signal {:?})" , code. signal( ) ) ;
223+ log:: error!(
224+ "[{id}] child process {process_id} completed with code {code} (signal {:?})" ,
225+ code. signal( )
226+ ) ;
224227 * child_completed. lock ( ) . unwrap ( ) = Some ( Completion :: with_error (
225228 child_out
226229 . lock ( )
0 commit comments