Skip to content

Commit cef2e2f

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 8823bf0 + 6ecad33 commit cef2e2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/pin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ impl<P: DerefMut> Pin<P> {
175175
/// Assign a new value to the memory behind the pinned reference.
176176
#[stable(feature = "pin", since = "1.33.0")]
177177
#[inline(always)]
178-
pub fn set(mut self: Pin<P>, value: P::Target)
178+
pub fn set(self: &mut Pin<P>, value: P::Target)
179179
where
180180
P::Target: Sized,
181181
{
182-
*self.pointer = value;
182+
*(self.pointer) = value;
183183
}
184184
}
185185

0 commit comments

Comments
 (0)