Skip to content

Commit

Permalink
Allow use of deprecated chrono functions for keeping MSRV 1.56.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Mar 9, 2024
1 parent 8042dbc commit a655dfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spdlog/src/sink/rotating_file_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit a655dfd

Please sign in to comment.