Skip to content

Commit 7b91ba3

Browse files
authored
Fix nightly compile warnings (#670)
Signed-off-by: Moritz Hoffmann <[email protected]>
1 parent d6f2255 commit 7b91ba3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

timely/src/dataflow/operators/core/capture/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub enum Event<T, C> {
2424
/// This method is not simply an iterator because of the lifetime in the result.
2525
pub trait EventIterator<T: Clone, C: Clone> {
2626
/// Iterates over `Cow<Event<T, C>>` elements.
27-
fn next(&mut self) -> Option<std::borrow::Cow<Event<T, C>>>;
27+
fn next(&mut self) -> Option<std::borrow::Cow<'_, Event<T, C>>>;
2828
}
2929

3030
/// Receives `Event<T, C>` events.

timely/src/progress/frontier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ pub trait MutableAntichainFilter<T: PartialOrder+Ord+Clone> {
629629
///
630630
/// assert!(changes == vec![(1, -1), (2, 1)]);
631631
/// ```
632-
fn filter_through(self, antichain: &mut MutableAntichain<T>) -> smallvec::Drain<[(T,i64); 2]>;
632+
fn filter_through(self, antichain: &mut MutableAntichain<T>) -> smallvec::Drain<'_, [(T,i64); 2]>;
633633
}
634634

635635
impl<T: PartialOrder+Ord+Clone, I: IntoIterator<Item=(T,i64)>> MutableAntichainFilter<T> for I {

timely/src/worker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ pub trait AsWorker : Scheduler {
201201
/// The next worker-unique identifier to be allocated.
202202
fn peek_identifier(&self) -> usize;
203203
/// Provides access to named logging streams.
204-
fn log_register(&self) -> Option<::std::cell::RefMut<crate::logging_core::Registry>>;
204+
fn log_register(&self) -> Option<RefMut<'_, crate::logging_core::Registry>>;
205205
/// Acquires a logger by name, if the log register exists and the name is registered.
206206
///
207207
/// For a more precise understanding of why a result is `None` one can use the direct functions.

0 commit comments

Comments
 (0)