]> git.lizzy.rs Git - rust.git/commitdiff
use lifetime elision for consistency
authorF001 <changchun.fan@qq.com>
Sun, 27 May 2018 12:07:10 +0000 (20:07 +0800)
committerF001 <changchun.fan@qq.com>
Tue, 17 Jul 2018 03:34:19 +0000 (11:34 +0800)
src/libcore/cell.rs

index 78ae1346175877e21980019d20198a2ff5353592..97fee5d06f45db4ef398b462da41fe9f883b87fe 100644 (file)
@@ -515,7 +515,7 @@ pub fn get_mut(&mut self) -> &mut T {
     /// ```
     #[inline]
     #[unstable(feature = "as_cell", issue="43038")]
-    pub fn from_mut<'a>(t: &'a mut T) -> &'a Cell<T> {
+    pub fn from_mut(t: &mut T) -> &Cell<T> {
         unsafe {
             &*(t as *mut T as *const Cell<T>)
         }