mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
add #[allow(unused)]
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user