mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 15:26:12 +00:00
Remove needless any
in feature gate
This commit is contained in:
parent
e5f322e26b
commit
4c18df43aa
@ -100,11 +100,11 @@ const fn span_for_digits(digits: u16) -> u32 {
|
|||||||
/// will also fail if the `Duration` is bigger than the timestamp.
|
/// will also fail if the `Duration` is bigger than the timestamp.
|
||||||
pub trait DurationRound: Sized {
|
pub trait DurationRound: Sized {
|
||||||
/// Error that can occur in rounding or truncating
|
/// Error that can occur in rounding or truncating
|
||||||
#[cfg(any(feature = "std"))]
|
#[cfg(feature = "std")]
|
||||||
type Err: std::error::Error;
|
type Err: std::error::Error;
|
||||||
|
|
||||||
/// Error that can occur in rounding or truncating
|
/// Error that can occur in rounding or truncating
|
||||||
#[cfg(not(any(feature = "std")))]
|
#[cfg(not(feature = "std"))]
|
||||||
type Err: fmt::Debug + fmt::Display;
|
type Err: fmt::Debug + fmt::Display;
|
||||||
|
|
||||||
/// Return a copy rounded by Duration.
|
/// Return a copy rounded by Duration.
|
||||||
@ -299,7 +299,7 @@ impl fmt::Display for RoundingError {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(feature = "std"))]
|
#[cfg(feature = "std")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
|
||||||
impl std::error::Error for RoundingError {
|
impl std::error::Error for RoundingError {
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user