Skip to content

Commit 6e3a943

Browse files
committed
chore: apply clippy
1 parent c828fa7 commit 6e3a943

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/libs/kill_tree/src/linux.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub(crate) fn validate_process_id(process_id: ProcessId) -> Result<()> {
1313
crate::unix::validate_process_id(process_id, AVAILABLE_MAX_PROCESS_ID)
1414
}
1515

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> {
1717
let mut parent_process_id = None;
1818
let mut name = None;
1919
for line in status.lines() {
@@ -170,7 +170,7 @@ pub(crate) mod blocking {
170170
return Err(e.into());
171171
}
172172
};
173-
parse_status(process_id, status_path.display().to_string(), status)
173+
parse_status(process_id, status_path.display().to_string(), &status)
174174
}
175175

176176
#[instrument]
@@ -232,7 +232,7 @@ pub(crate) mod tokio {
232232
return Err(Error::Io(e));
233233
}
234234
};
235-
parse_status(process_id, status_path.display().to_string(), status)
235+
parse_status(process_id, status_path.display().to_string(), &status)
236236
}
237237

238238
#[instrument]

0 commit comments

Comments
 (0)