Skip to content

Commit f9ffd6f

Browse files
CommanderStormdjc
authored andcommitted
add #[inline] to num_days
1 parent 7974c60 commit f9ffd6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/time_delta.rs

+1
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ impl TimeDelta {
281281
}
282282

283283
/// Returns the total number of whole days in the `TimeDelta`.
284+
#[inline]
284285
pub const fn num_days(&self) -> i64 {
285286
self.num_seconds() / SECS_PER_DAY
286287
}

0 commit comments

Comments
 (0)