mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-21 15:04:33 -05:00
Remove unnecessary derive(Debug) (#195)
This commit is contained in:
parent
f43c33737a
commit
63673c3740
2 changed files with 2 additions and 7 deletions
|
@ -26,7 +26,6 @@ extern "C" {
|
|||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StringBuffer {
|
||||
_cxx_vtable: CxxVTable,
|
||||
}
|
||||
|
|
|
@ -26,7 +26,6 @@ where
|
|||
|
||||
/// Pointer to object allocated on the C++ heap. The pointer may be null.
|
||||
#[repr(transparent)]
|
||||
#[derive(Debug)]
|
||||
pub struct UniquePtr<T>(Option<&'static mut T>)
|
||||
where
|
||||
T: Delete;
|
||||
|
@ -90,7 +89,6 @@ where
|
|||
|
||||
/// Pointer to object allocated on the C++ heap. The pointer may not be null.
|
||||
#[repr(transparent)]
|
||||
#[derive(Debug)]
|
||||
pub struct UniqueRef<T>(&'static mut T)
|
||||
where
|
||||
T: Delete;
|
||||
|
@ -155,7 +153,6 @@ where
|
|||
/// Wrapper around a C++ shared_ptr. The shared_ptr is assumed to contain a
|
||||
/// value and not be null.
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct SharedRef<T>([*mut Opaque; 2], PhantomData<T>)
|
||||
where
|
||||
T: Shared;
|
||||
|
@ -218,14 +215,13 @@ impl Into<Option<bool>> for MaybeBool {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
#[derive(Copy, Clone)]
|
||||
#[repr(transparent)]
|
||||
pub struct CxxVTable(pub *const Opaque);
|
||||
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct RustVTable<DynT>(pub *const Opaque, pub PhantomData<DynT>);
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct FieldOffset<F>(usize, PhantomData<F>);
|
||||
|
||||
unsafe impl<F> Send for FieldOffset<F> where F: Send {}
|
||||
|
|
Loading…
Reference in a new issue