test-distro: appease unreachable code check

See https://github.com/rust-lang/rust/commit/ff6dc928c5e33ce8e65c6911a7.
reviewable/pr1366/r1
Tamir Duberstein 3 days ago
parent fc5387c806
commit 29dc775535
No known key found for this signature in database

@ -195,6 +195,10 @@ fn main() {
}
}
let how = nix::sys::reboot::RebootMode::RB_POWER_OFF;
let _: std::convert::Infallible = nix::sys::reboot::reboot(how)
.unwrap_or_else(|err| panic!("reboot({how:?}) failed: {err:?}"));
match nix::sys::reboot::reboot(how) {
Ok(infallible) => match infallible {},
Err(err) => {
panic!("reboot({how:?}) failed: {err:?}")
}
}
}

Loading…
Cancel
Save