File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/libs/kill_tree/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub(crate) fn validate_process_id(process_id: ProcessId) -> Result<()> {
13
13
crate :: unix:: validate_process_id ( process_id, AVAILABLE_MAX_PROCESS_ID )
14
14
}
15
15
16
- fn parse_status ( process_id : ProcessId , status_path : String , status : String ) -> Result < ProcessInfo > {
16
+ fn parse_status ( process_id : ProcessId , status_path : String , status : & str ) -> Result < ProcessInfo > {
17
17
let mut parent_process_id = None ;
18
18
let mut name = None ;
19
19
for line in status. lines ( ) {
@@ -170,7 +170,7 @@ pub(crate) mod blocking {
170
170
return Err ( e. into ( ) ) ;
171
171
}
172
172
} ;
173
- parse_status ( process_id, status_path. display ( ) . to_string ( ) , status)
173
+ parse_status ( process_id, status_path. display ( ) . to_string ( ) , & status)
174
174
}
175
175
176
176
#[ instrument]
@@ -232,7 +232,7 @@ pub(crate) mod tokio {
232
232
return Err ( Error :: Io ( e) ) ;
233
233
}
234
234
} ;
235
- parse_status ( process_id, status_path. display ( ) . to_string ( ) , status)
235
+ parse_status ( process_id, status_path. display ( ) . to_string ( ) , & status)
236
236
}
237
237
238
238
#[ instrument]
You can’t perform that action at this time.
0 commit comments