We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8b354 commit a3f87c0Copy full SHA for a3f87c0
src/header/internals/cell.rs
@@ -93,6 +93,10 @@ impl<V: ?Sized + Any + 'static> PtrMapCell<V> {
93
94
#[inline]
95
pub fn into_value(self, key: TypeId) -> Option<Box<V>> {
96
+ // UnsafeCell::into_inner was unsafe forever, and 1.25 has removed
97
+ // the unsafe modifier, resulting in a warning. This allow can be
98
+ // removed when the minimum supported rust version is at least 1.25.
99
+ #[allow(unused_unsafe)]
100
let map = unsafe { self.0.into_inner() };
101
match map {
102
PtrMap::Empty => None,
0 commit comments