mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-03 20:15:45 +00:00
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 <sebastien.boeuf@intel.com>
This commit is contained in:
parent
49db713124
commit
e674577ea9
@ -6535,7 +6535,7 @@ mod windows {
|
|||||||
.spawn()
|
.spawn()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let stdin = child.stdin.as_mut().expect("failed to open stdin");
|
let stdin = child.stdin.as_mut().expect("failed to open stdin");
|
||||||
let _ = stdin
|
stdin
|
||||||
.write_all("type=7".as_bytes())
|
.write_all("type=7".as_bytes())
|
||||||
.expect("failed to write stdin");
|
.expect("failed to write stdin");
|
||||||
let out = child.wait_with_output().expect("sfdisk failed").stdout;
|
let out = child.wait_with_output().expect("sfdisk failed").stdout;
|
||||||
|
Loading…
Reference in New Issue
Block a user