From 63673c3740b5da401d791b1dfc6ca040a3d737f2 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Mon, 6 Jan 2020 14:57:15 -0500 Subject: [PATCH] Remove unnecessary derive(Debug) (#195) --- src/inspector/string_buffer.rs | 1 - src/support.rs | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/inspector/string_buffer.rs b/src/inspector/string_buffer.rs index 7dc4a3e4..37c7153e 100644 --- a/src/inspector/string_buffer.rs +++ b/src/inspector/string_buffer.rs @@ -26,7 +26,6 @@ extern "C" { } #[repr(C)] -#[derive(Debug)] pub struct StringBuffer { _cxx_vtable: CxxVTable, } diff --git a/src/support.rs b/src/support.rs index ee02b13f..2998f879 100644 --- a/src/support.rs +++ b/src/support.rs @@ -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(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(&'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([*mut Opaque; 2], PhantomData) where T: Shared; @@ -218,14 +215,13 @@ impl Into> 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(pub *const Opaque, pub PhantomData); -#[derive(Debug)] pub struct FieldOffset(usize, PhantomData); unsafe impl Send for FieldOffset where F: Send {}