Skip to content

Commit 4d99957

Browse files
committed
use lifetime elision for consistency
1 parent 4bf8b57 commit 4d99957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ impl<T: ?Sized> Cell<T> {
515515
/// ```
516516
#[inline]
517517
#[unstable(feature = "as_cell", issue="43038")]
518-
pub fn from_mut<'a>(t: &'a mut T) -> &'a Cell<T> {
518+
pub fn from_mut(t: &mut T) -> &Cell<T> {
519519
unsafe {
520520
&*(t as *mut T as *const Cell<T>)
521521
}

0 commit comments

Comments
 (0)