Skip to content

Commit

Permalink
chore: apply clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
oneofthezombies committed Feb 12, 2024
1 parent c828fa7 commit 6e3a943
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/libs/kill_tree/src/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub(crate) fn validate_process_id(process_id: ProcessId) -> Result<()> {
crate::unix::validate_process_id(process_id, AVAILABLE_MAX_PROCESS_ID)
}

fn parse_status(process_id: ProcessId, status_path: String, status: String) -> Result<ProcessInfo> {
fn parse_status(process_id: ProcessId, status_path: String, status: &str) -> Result<ProcessInfo> {
let mut parent_process_id = None;
let mut name = None;
for line in status.lines() {
Expand Down Expand Up @@ -170,7 +170,7 @@ pub(crate) mod blocking {
return Err(e.into());
}
};
parse_status(process_id, status_path.display().to_string(), status)
parse_status(process_id, status_path.display().to_string(), &status)
}

#[instrument]
Expand Down Expand Up @@ -232,7 +232,7 @@ pub(crate) mod tokio {
return Err(Error::Io(e));
}
};
parse_status(process_id, status_path.display().to_string(), status)
parse_status(process_id, status_path.display().to_string(), &status)
}

#[instrument]
Expand Down

0 comments on commit 6e3a943

Please sign in to comment.