diff options
author | Neal H. Walfield <neal@pep.foundation> | 2022-11-11 19:33:42 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2022-11-11 19:35:21 +0100 |
commit | 813f3f00a967eea210641103b5e64e0d31299ae6 (patch) | |
tree | 77504c854e0bcaf245e16b6a837b4fc985fad801 | |
parent | af29fce0b9ccdc567f29311c4f7d69233b3dfbc4 (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.rs | 1 |
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) }; |