Skip to content

Commit

Permalink
src/lib.rs : prefix an unused variable with an underscore
Browse files Browse the repository at this point in the history
unused variable: `metadata`,  according to rustc, 
if this is intentional, prefix it with an underscore: `_metadata`
  • Loading branch information
OccupyMars2025 committed May 26, 2023
1 parent 502bdb7 commit 1acf2f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// }
///
Expand Down

0 comments on commit 1acf2f3

Please sign in to comment.