From 2e9b2254363d5c98dfa60a972bdad3f1fd9eb322 Mon Sep 17 00:00:00 2001 From: Jenda Kolena Date: Mon, 6 Oct 2025 16:21:10 +0200 Subject: [PATCH 1/2] Fix deprecation warning after slog 2.8 came out --- lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib.rs b/lib.rs index 3424911..1d2daa5 100644 --- a/lib.rs +++ b/lib.rs @@ -67,7 +67,10 @@ use arc_swap::ArcSwap; use std::result; -pub use slog::{slog_crit, slog_debug, slog_error, slog_info, slog_trace, slog_warn}; +pub use slog::{ + crit as slog_crit, debug as slog_debug, error as slog_error, info as slog_info, + trace as slog_trace, warn as slog_warn, +}; /// Log a critical level message using current scope logger #[macro_export] From af65540b09c4c3f60a36932a26a83e5962e57938 Mon Sep 17 00:00:00 2001 From: Jenda Kolena Date: Mon, 6 Oct 2025 16:21:33 +0200 Subject: [PATCH 2/2] Fix clippy warning --- lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.rs b/lib.rs index 1d2daa5..228f0c7 100644 --- a/lib.rs +++ b/lib.rs @@ -248,6 +248,6 @@ where F : FnOnce(&Logger) -> R { pub fn scope(logger: &slog::Logger, f: SF) -> R where SF: FnOnce() -> R { - let _guard = ScopeGuard::new(&logger); + let _guard = ScopeGuard::new(logger); f() }