From a655dfddbaa5c6d0598d81bcfc7c4c963adac07d Mon Sep 17 00:00:00 2001 From: Asuna Date: Sun, 10 Mar 2024 06:37:19 +0800 Subject: [PATCH] Allow use of deprecated `chrono` functions for keeping MSRV `1.56.0` --- spdlog/src/sink/rotating_file_sink.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/spdlog/src/sink/rotating_file_sink.rs b/spdlog/src/sink/rotating_file_sink.rs index 12a705d6..8c7de10e 100644 --- a/spdlog/src/sink/rotating_file_sink.rs +++ b/spdlog/src/sink/rotating_file_sink.rs @@ -709,6 +709,7 @@ impl TimePoint { #[must_use] fn delta_chrono(&self) -> chrono::Duration { + #[allow(deprecated)] // For keeping the current MSRV 1.56.0 match self { Self::Daily { .. } => chrono::Duration::days(1), Self::Hourly { .. } => chrono::Duration::hours(1),