Skip to content

Commit a825bec

Browse files
Merge pull request #67 from andrewdavidmackenzie/fix_new_clippy_warnings
Fix new linux clippy warnings
2 parents 3bd54d7 + aa8c92d commit a825bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libproc/proc_pid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ pub fn listpids(proc_types: ProcType) -> Result<Vec<u32>, String> {
222222
ProcType::ProcAllPIDS => {
223223
let mut pids = Vec::<u32>::new();
224224

225-
let proc_dir = fs::read_dir("/proc").map_err(|e| format!("Could not read '/proc': {}", e.to_string()))?;
225+
let proc_dir = fs::read_dir("/proc").map_err(|e| format!("Could not read '/proc': {}", e))?;
226226

227227
for entry in proc_dir {
228228
let path = entry.map_err(|_| "Couldn't get /proc/ filename")?.path();

0 commit comments

Comments
 (0)