From 813f3f00a967eea210641103b5e64e0d31299ae6 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Fri, 11 Nov 2022 19:33:42 +0100 Subject: openpgp: Allow tracer to be used just for tracing. - The `tracer` macro declares a local macro, `t`, that can be used to show additional tracing information. - It is useful to just show that a function has been entered. - Don't require that `t` be used. --- openpgp/src/macros.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/openpgp/src/macros.rs b/openpgp/src/macros.rs index 11f334d0..8a84f3bb 100644 --- a/openpgp/src/macros.rs +++ b/openpgp/src/macros.rs @@ -26,6 +26,7 @@ macro_rules! tracer { // Currently, Rust doesn't support $( ... ) in a nested // macro's definition. See: // https://users.rust-lang.org/t/nested-macros-issue/8348/2 + #[allow(unused_macros)] macro_rules! t { ( $fmt:expr ) => { trace!($TRACE, "{}{}: {}", crate::macros::indent($indent), $func, $fmt) }; -- cgit v1.2.3