Skip to content

Commit

Permalink
Add missing mut.
Browse files Browse the repository at this point in the history
Co-authored-by: David Tolnay <dtolnay@gmail.com>
  • Loading branch information
m-ou-se and dtolnay committed Oct 15, 2020
1 parent f83446b commit df95dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ impl<T: ?Sized> Pin<&'static T> {
}
}

impl<T: ?Sized> Pin<&'static T> {
impl<T: ?Sized> Pin<&'static mut T> {
/// Get a pinned mutable reference from a static mutable reference.
///
/// This is safe, because `T` is borrowed for the `'static` lifetime, which
Expand Down

0 comments on commit df95dce

Please sign in to comment.