This commit is contained in:
Ralf Jung 2024-10-04 10:12:05 +02:00
parent 7014ae87df
commit dc88a6a788
2 changed files with 1 additions and 2 deletions

View File

@ -668,7 +668,6 @@ pub fn phase_runner(mut binary_args: impl Iterator<Item = String>, phase: Runner
RunnerPhase::Rustdoc => {
cmd.stdin(std::process::Stdio::piped());
// the warning is wrong, we have a `wait` inside the `scope` closure.
#[expect(clippy::zombie_processes)]
let mut child = cmd.spawn().expect("failed to spawn process");
let child_stdin = child.stdin.take().unwrap();
// Write stdin in a background thread, as it may block.

View File

@ -151,7 +151,7 @@ impl VClock {
/// Load the internal timestamp slice in the vector clock
#[inline]
pub(super) fn as_slice(&self) -> &[VTimestamp] {
debug_assert!(!self.0.last().is_some_and(|t| t.time() == 0));
debug_assert!(self.0.last().is_none_or(|t| t.time() != 0));
self.0.as_slice()
}