Skip to content

Commit

Permalink
add #[inline] to num_days
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Nov 9, 2024
1 parent 7974c60 commit 2f8e09e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/time_delta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ impl TimeDelta {
}

/// Returns the total number of whole days in the `TimeDelta`.
#[inline]
pub const fn num_days(&self) -> i64 {
self.num_seconds() / SECS_PER_DAY
}
Expand Down

0 comments on commit 2f8e09e

Please sign in to comment.