From 63dffe29e9682df217dc933b1e124dea69865e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 10 Aug 2021 17:21:45 +0400 Subject: [PATCH] Derive Debug for Context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no reason not to, I suppose. Signed-off-by: Marc-André Lureau --- src/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context.rs b/src/context.rs index b8f0476..c419405 100644 --- a/src/context.rs +++ b/src/context.rs @@ -19,12 +19,12 @@ type MicroSeconds = ::libc::suseconds_t; pub struct GlobalContext {} /// A `libusb` context. -#[derive(Clone, Eq, PartialEq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct Context { context: Arc, } -#[derive(Eq, PartialEq)] +#[derive(Debug, Eq, PartialEq)] struct ContextInner { inner: ptr::NonNull, }