Skip to content

Commit a655dfd

Browse files
committed
Allow use of deprecated chrono functions for keeping MSRV 1.56.0
1 parent 8042dbc commit a655dfd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spdlog/src/sink/rotating_file_sink.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@ impl TimePoint {
709709

710710
#[must_use]
711711
fn delta_chrono(&self) -> chrono::Duration {
712+
#[allow(deprecated)] // For keeping the current MSRV 1.56.0
712713
match self {
713714
Self::Daily { .. } => chrono::Duration::days(1),
714715
Self::Hourly { .. } => chrono::Duration::hours(1),

0 commit comments

Comments
 (0)