Update code for Rust 1.83.0 Test: m rust Bug: 384401387 Change-Id: I4149fe70efcbcc12e531c1f9902f71e498139b17
diff --git a/libfmq.rs b/libfmq.rs index 55a3419..c2309da 100644 --- a/libfmq.rs +++ b/libfmq.rs
@@ -65,7 +65,7 @@ n_written: usize, } -impl<'a, T: Share> WriteCompletion<'a, T> { +impl<T: Share> WriteCompletion<'_, T> { /// Obtain a pointer to the location at which the idx'th item should be /// stored. /// @@ -137,7 +137,7 @@ } } -impl<'a, T: Share> Drop for WriteCompletion<'a, T> { +impl<T: Share> Drop for WriteCompletion<'_, T> { fn drop(&mut self) { if self.n_written < self.n_elems { error!( @@ -353,7 +353,7 @@ n_read: usize, } -impl<'a, T: Share> ReadCompletion<'a, T> { +impl<T: Share> ReadCompletion<'_, T> { /// Obtain a pointer to the location at which the idx'th item is located. /// /// The returned pointer is only valid while `self` has not been dropped and @@ -421,7 +421,7 @@ } } -impl<'a, T: Share> Drop for ReadCompletion<'a, T> { +impl<T: Share> Drop for ReadCompletion<'_, T> { fn drop(&mut self) { if self.n_read < self.n_elems { error!(