From 1acf2f355bdf3e2b165b9c459dc256d2497dba27 Mon Sep 17 00:00:00 2001 From: OccupyMars2025 <31559413+OccupyMars2025@users.noreply.github.com> Date: Fri, 26 May 2023 17:02:20 +0800 Subject: [PATCH] src/lib.rs : prefix an unused variable with an underscore unused variable: `metadata`, according to rustc, if this is intentional, prefix it with an underscore: `_metadata` --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 63401f040..c809db36c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -690,7 +690,7 @@ impl<'a> MaybeStaticStr<'a> { /// struct SimpleLogger; /// /// impl log::Log for SimpleLogger { -/// fn enabled(&self, metadata: &log::Metadata) -> bool { +/// fn enabled(&self, _metadata: &log::Metadata) -> bool { /// true /// } ///