diff options
| author | Ralf Jung <post@ralfj.de> | 2018-05-07 13:20:30 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-05-07 13:20:30 +0200 |
| commit | 17206a7e64a3f3c8bb63e099e837ba7cda07947e (patch) | |
| tree | b4c7742f423e69e1d117ca9b827a548234133371 | |
| parent | 84ce206db6a1b452c3277963e8eafd99baba0668 (diff) | |
PinMut::get_mut can also preserve the lifetime
| -rw-r--r-- | src/libcore/mem.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index a062ec7ee3d..74eb219e45d 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -1141,7 +1141,7 @@ impl<'a, T: ?Sized> PinMut<'a, T> { /// the data out of the mutable reference you receive when you call this /// function. #[unstable(feature = "pin", issue = "49150")] - pub unsafe fn get_mut<'b>(this: &'b mut PinMut<'a, T>) -> &'b mut T { + pub unsafe fn get_mut(this: PinMut<'a, T>) -> &'a mut T { this.inner } |
