From 7cc13fefe9bd09ea778a0eb8c26bf133e6ad2476 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Mon, 7 Jun 2021 22:34:19 +0800 Subject: Derive debug without feature Note that this also removed those `finish_non_exhaustive()`. --- helix-lsp/src/client.rs | 2 +- helix-lsp/src/lib.rs | 2 +- helix-lsp/src/transport.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'helix-lsp/src') diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index 739ff9c2..c2ea11b8 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -16,7 +16,7 @@ use tokio::{ sync::mpsc::{channel, UnboundedReceiver, UnboundedSender}, }; -#[cfg_attr(feature = "debug", derive(Debug))] +#[derive(Debug)] pub struct Client { _process: Child, server_tx: UnboundedSender, diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs index 197ca27d..6d40cf0a 100644 --- a/helix-lsp/src/lib.rs +++ b/helix-lsp/src/lib.rs @@ -172,7 +172,7 @@ impl Notification { } } -#[cfg_attr(feature = "debug", derive(Debug))] +#[derive(Debug)] pub struct Registry { inner: HashMap>, diff --git a/helix-lsp/src/transport.rs b/helix-lsp/src/transport.rs index 876de929..e8068323 100644 --- a/helix-lsp/src/transport.rs +++ b/helix-lsp/src/transport.rs @@ -31,7 +31,7 @@ enum ServerMessage { Call(jsonrpc::Call), } -#[cfg_attr(feature = "debug", derive(Debug))] +#[derive(Debug)] pub struct Transport { client_tx: UnboundedSender, client_rx: UnboundedReceiver, -- cgit v1.2.3-70-g09d2