Mercurial > crates > nonstick
diff src/logging.rs @ 123:98a624cacd82
Get rid of all the warnings, and arrange attributes.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Mon, 30 Jun 2025 04:26:44 -0400 |
parents | 39760dfc9b3b |
children |
line wrap: on
line diff
--- a/src/logging.rs Mon Jun 30 04:22:39 2025 -0400 +++ b/src/logging.rs Mon Jun 30 04:26:44 2025 -0400 @@ -179,7 +179,6 @@ #[cfg(test)] mod tests { use super::*; - use regex::Regex; use std::cell::RefCell; #[test] @@ -187,7 +186,7 @@ struct Logger(RefCell<Vec<(Level, String)>>); impl Logger { - fn log(&self, level: Level, loc: Location<'_>, text: &str) { + fn log(&self, level: Level, _: Location<'_>, text: &str) { self.0.borrow_mut().push((level, text.to_owned())) } }