From 6f6f07e8d59166c45216421e0941c0afca11c6a9 Mon Sep 17 00:00:00 2001 From: Frank McSherry Date: Mon, 5 Feb 2024 14:33:32 -0500 Subject: [PATCH] Tidy warnings --- timely/examples/rc.rs | 4 ++-- timely/src/synchronization/sequence.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/timely/examples/rc.rs b/timely/examples/rc.rs index 18f6fe972e..f79ef74729 100644 --- a/timely/examples/rc.rs +++ b/timely/examples/rc.rs @@ -8,7 +8,7 @@ use abomonation::Abomonation; #[derive(Debug, Clone)] pub struct Test { - field: Rc, + _field: Rc, } impl Abomonation for Test { @@ -32,7 +32,7 @@ fn main() { // introduce data and watch! for round in 0..10 { - input.send(Test { field: Rc::new(round) } ); + input.send(Test { _field: Rc::new(round) } ); input.advance_to(round + 1); worker.step_while(|| probe.less_than(input.time())); } diff --git a/timely/src/synchronization/sequence.rs b/timely/src/synchronization/sequence.rs index 7525d33892..320a3dcb87 100644 --- a/timely/src/synchronization/sequence.rs +++ b/timely/src/synchronization/sequence.rs @@ -157,7 +157,7 @@ impl Sequencer { } let mut activator_borrow = activator_source.borrow_mut(); - let mut activator = activator_borrow.as_mut().unwrap(); + let activator = activator_borrow.as_mut().unwrap(); if let Some(t) = activator.catchup_until { if capability.time().less_than(&t) { @@ -190,7 +190,7 @@ impl Sequencer { if let Some(last) = recvd.last() { let mut activator_borrow = activator_sink.borrow_mut(); - let mut activator = activator_borrow.as_mut().unwrap(); + let activator = activator_borrow.as_mut().unwrap(); activator.catchup_until = Some((last.0).0); activator.activate();