From e0180ef0cf2a085534f55c598015217b1c168432 Mon Sep 17 00:00:00 2001 From: Snowiiii Date: Fri, 11 Oct 2024 16:47:24 +0200 Subject: [PATCH] Fix: clippy --- pumpkin/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pumpkin/src/main.rs b/pumpkin/src/main.rs index 62db705b..97691000 100644 --- a/pumpkin/src/main.rs +++ b/pumpkin/src/main.rs @@ -60,7 +60,7 @@ fn init_logger() { } } -fn convert_logger_filter(level: pumpkin_config::logging::LevelFilter) -> LevelFilter { +const fn convert_logger_filter(level: pumpkin_config::logging::LevelFilter) -> LevelFilter { match level { pumpkin_config::logging::LevelFilter::Off => LevelFilter::Off, pumpkin_config::logging::LevelFilter::Error => LevelFilter::Error,