Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clippy fixes for Rust 1.71 #1186

Merged
merged 1 commit into from
Jul 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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