clippy
This commit is contained in:
parent
7014ae87df
commit
dc88a6a788
@ -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.
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user