Enable some warnings

This commit is contained in:
Joscha 2022-08-02 01:49:08 +02:00
parent baa49107f1
commit 00bcdddc62
8 changed files with 30 additions and 15 deletions

View file

@ -105,11 +105,11 @@ impl MsgStore<LogMsg> for Logger {
}
impl Log for Logger {
fn enabled(&self, _metadata: &log::Metadata) -> bool {
fn enabled(&self, _metadata: &log::Metadata<'_>) -> bool {
true
}
fn log(&self, record: &log::Record) {
fn log(&self, record: &log::Record<'_>) {
if !self.enabled(record.metadata()) {
return;
}