Skip to content

Commit b0ab557

Browse files
bors[bot]rtzoeller
andauthored
Merge #1722
1722: Fix nightly clippy in tests r=asomers a=rtzoeller `cargo +nightly clippy --tests` currently produces ``` warning: this let-binding has unit value --> test/sys/test_uio.rs:256:20 | 256 | loop { let _ = pause(); } | ^^^^^^^^^^^^^^^^ help: omit the `let` binding: `pause();` | = note: `#[warn(clippy::let_unit_value)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value ``` Co-authored-by: Ryan Zoeller <[email protected]>
2 parents 6639c59 + 598925c commit b0ab557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sys/test_uio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ fn test_process_vm_readv() {
253253
}
254254
let _ = write(w, b"\0");
255255
let _ = close(w);
256-
loop { let _ = pause(); }
256+
loop { pause(); }
257257
},
258258
}
259259
}

0 commit comments

Comments
 (0)