Skip to content
New issue

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

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

Already on GitHub? # to your account

Address clippy lint violations in Rust 1.66.0 #81

Merged
merged 1 commit into from
Dec 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ impl Piece {
}

/// Format nanoseconds with the specified precision.
#[allow(clippy::uninlined_format_args)] // for readability and symmetry between if branches
fn format_nanoseconds(
&self,
f: &mut SizeLimiter<'_>,
Expand Down Expand Up @@ -1031,6 +1032,6 @@ mod tests {
Spec::CombinationTime24h,
);

assert!(!format!("{:?}", piece).is_empty());
assert!(!format!("{piece:?}").is_empty());
}
}