Skip to content

Commit df95dce

Browse files
m-ou-sedtolnay
andauthored
Add missing mut.
Co-authored-by: David Tolnay <dtolnay@gmail.com>
1 parent f83446b commit df95dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/pin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ impl<T: ?Sized> Pin<&'static T> {
795795
}
796796
}
797797

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

0 commit comments

Comments
 (0)