From e96fd9a6abd57af4bf5006617757e0b2047fc655 Mon Sep 17 00:00:00 2001 From: Eyal Kalderon Date: Sat, 14 Jan 2023 23:50:16 -0500 Subject: [PATCH] Initialize tracing_subscriber::fmt in doc example --- src/lib.rs | 2 ++ tower-lsp-macros/src/lib.rs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 83390d0c..2e8995eb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,6 +56,8 @@ //! //! #[tokio::main] //! async fn main() { +//! # tracing_subscriber::fmt().init(); +//! # //! # #[cfg(feature = "runtime-agnostic")] //! # use tokio_util::compat::{TokioAsyncReadCompatExt, TokioAsyncWriteCompatExt}; //! # use std::io::Cursor; diff --git a/tower-lsp-macros/src/lib.rs b/tower-lsp-macros/src/lib.rs index 7a86afa4..50574a5b 100644 --- a/tower-lsp-macros/src/lib.rs +++ b/tower-lsp-macros/src/lib.rs @@ -146,7 +146,6 @@ fn gen_server_router(trait_name: &syn::Ident, methods: &[MethodCall]) -> proc_ma use std::sync::Arc; use std::future::{Future, Ready}; - use tracing::info; use lsp_types::*; use lsp_types::notification::*; use lsp_types::request::*;