Skip to content

Commit

Permalink
Remove needless any in feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Jul 15, 2023
1 parent e5f322e commit 4c18df4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/round.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ const fn span_for_digits(digits: u16) -> u32 {
/// will also fail if the `Duration` is bigger than the timestamp.
pub trait DurationRound: Sized {
/// Error that can occur in rounding or truncating
#[cfg(any(feature = "std"))]
#[cfg(feature = "std")]
type Err: std::error::Error;

/// Error that can occur in rounding or truncating
#[cfg(not(any(feature = "std")))]
#[cfg(not(feature = "std"))]
type Err: fmt::Debug + fmt::Display;

/// Return a copy rounded by Duration.
Expand Down Expand Up @@ -299,7 +299,7 @@ impl fmt::Display for RoundingError {
}
}

#[cfg(any(feature = "std"))]
#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
impl std::error::Error for RoundingError {
#[allow(deprecated)]
Expand Down

0 comments on commit 4c18df4

Please sign in to comment.