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 and djc committed Nov 11, 2024
1 parent 7974c60 commit f9ffd6f
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 f9ffd6f

Please sign in to comment.