Skip to content

Commit eaa6cc8

Browse files
committed
style: apply rustfmt to snice module
1 parent 24399b4 commit eaa6cc8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/uu/snice/src/action.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ impl SelectedTarget {
6262
let pid = pid.as_u32();
6363
let path = PathBuf::from_str(&format!("/proc/{pid}/")).unwrap();
6464

65-
ProcessInformation::try_new(path).map(|mut p| p.tty()).unwrap_or(Teletype::Unknown) == *tty
65+
ProcessInformation::try_new(path)
66+
.map(|mut p| p.tty())
67+
.unwrap_or(Teletype::Unknown)
68+
== *tty
6669
})
6770
.map(|(pid, _)| pid.as_u32())
6871
.collect()

src/uu/snice/src/snice.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ pub fn construct_verbose_result(
214214
row![pid]
215215
}
216216
Some((tty, user, cmd, action)) => {
217-
let tty_str = tty.map(|mut t| t.tty().to_string()).unwrap_or_else(|_| "?".to_string());
217+
let tty_str = tty
218+
.map(|mut t| t.tty().to_string())
219+
.unwrap_or_else(|_| "?".to_string());
218220
row![tty_str, user, pid, cmd, action]
219221
}
220222
})

0 commit comments

Comments
 (0)