Skip to content

Commit

Permalink
allow unused mut for pinning explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
nivkner committed Aug 22, 2018
1 parent 8e9aad2 commit 6b47a61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/liballoc/pin.rs
Expand Up @@ -77,6 +77,7 @@
//! // The pointer should point to the correct location,
//! // so long as the struct hasn't moved.
//! // Meanwhile, we are free to move the pointer around.
//! # #[allow(unused_mut)]
//! let mut still_unmoved = unmoved;
//! assert_eq!(still_unmoved.slice, NonNull::from(&still_unmoved.data));
//!
Expand Down

0 comments on commit 6b47a61

Please sign in to comment.