Skip to content

Commit 6b47a61

Browse files
committed
allow unused mut for pinning explanation
1 parent 8e9aad2 commit 6b47a61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/liballoc/pin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
//! // The pointer should point to the correct location,
7878
//! // so long as the struct hasn't moved.
7979
//! // Meanwhile, we are free to move the pointer around.
80+
//! # #[allow(unused_mut)]
8081
//! let mut still_unmoved = unmoved;
8182
//! assert_eq!(still_unmoved.slice, NonNull::from(&still_unmoved.data));
8283
//!

0 commit comments

Comments
 (0)