nodrop: Fix warning for unused import
This commit is contained in:
+1
-2
@@ -33,7 +33,6 @@ pub use imp::NoDrop;
|
|||||||
|
|
||||||
#[cfg(not(feature = "use_union"))]
|
#[cfg(not(feature = "use_union"))]
|
||||||
mod imp {
|
mod imp {
|
||||||
use std;
|
|
||||||
use odds::debug_assert_unreachable;
|
use odds::debug_assert_unreachable;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
@@ -81,7 +80,7 @@ mod imp {
|
|||||||
#[inline]
|
#[inline]
|
||||||
fn needs_drop<T>() -> bool {
|
fn needs_drop<T>() -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
std::intrinsics::needs_drop::<T>()
|
::std::intrinsics::needs_drop::<T>()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user