add #[allow(unused)]

This commit is contained in:
tyler
2019-05-03 17:01:53 -07:00
parent f5e56eeff6
commit 060d8bb6b0
+1
View File
@@ -311,6 +311,7 @@ pub unsafe fn initialize<F: FnOnce() -> T>(&self, init: F) -> &'static T {
}
}
#[allow(unused)]
pub unsafe fn take(&mut self) -> Option<T> {
(*self.inner.get()).take()
}