From e674577ea946db4f4a2e3f2f1a831283b51ea975 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Fri, 20 May 2022 09:57:46 +0200 Subject: [PATCH] tests: Fix clippy error on latest cargo beta version The current patch fixes the following error that was raised by clippy: error: this let-binding has unit value --> tests/integration.rs:6538:13 | 6538 | / let _ = stdin 6539 | | .write_all("type=7".as_bytes()) 6540 | | .expect("failed to write stdin"); | |_________________________________________________^ | = note: `-D clippy::let-unit-value` implied by `-D warnings` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value help: omit the `let` binding | 6538 ~ stdin 6539 + .write_all("type=7".as_bytes()) 6540 + .expect("failed to write stdin"); | error: could not compile `cloud-hypervisor` due to previous error Signed-off-by: Sebastien Boeuf --- tests/integration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index 76c902b86..df8bd5088 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -6535,7 +6535,7 @@ mod windows { .spawn() .unwrap(); let stdin = child.stdin.as_mut().expect("failed to open stdin"); - let _ = stdin + stdin .write_all("type=7".as_bytes()) .expect("failed to write stdin"); let out = child.wait_with_output().expect("sfdisk failed").stdout;