mirror of
https://github.com/uutils/procps.git
synced 2026-06-10 16:14:00 -07:00
pidwait: Use reference instead of mutable iterator.
This commit is contained in:
@@ -89,7 +89,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
|
||||
if settings.echo {
|
||||
if settings.newest || settings.oldest {
|
||||
for ele in proc_infos.iter_mut() {
|
||||
for ele in &proc_infos {
|
||||
println!("waiting for (pid {})", ele.pid)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user