Skip to content

Commit 6d264d5

Browse files
committed
Remove erroneous #[inline(never)] attributes
1 parent b278a26 commit 6d264d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

time/src/duration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ impl Duration {
582582
/// assert_eq!(Duration::seconds_f64(0.5), 0.5.seconds());
583583
/// assert_eq!(Duration::seconds_f64(-0.5), (-0.5).seconds());
584584
/// ```
585-
#[inline(never)]
585+
#[inline]
586586
#[track_caller]
587587
pub const fn seconds_f64(seconds: f64) -> Self {
588588
match Self::try_seconds_f64(seconds) {
@@ -639,7 +639,7 @@ impl Duration {
639639
/// Duration::MAX,
640640
/// );
641641
/// ```
642-
#[inline(never)]
642+
#[inline]
643643
pub const fn saturating_seconds_f64(seconds: f64) -> Self {
644644
match Self::try_seconds_f64(seconds) {
645645
Ok(duration) => duration,

0 commit comments

Comments
 (0)