summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2022-11-11 19:33:42 +0100
committerNeal H. Walfield <neal@pep.foundation>2022-11-11 19:35:21 +0100
commit813f3f00a967eea210641103b5e64e0d31299ae6 (patch)
tree77504c854e0bcaf245e16b6a837b4fc985fad801
parentaf29fce0b9ccdc567f29311c4f7d69233b3dfbc4 (diff)
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.
-rw-r--r--openpgp/src/macros.rs1
1 files changed, 1 insertions, 0 deletions
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) };