Skip to content

Commit

Permalink
Merge pull request #81 from artichoke/lopopolo/clippy-1.66.0
Browse files Browse the repository at this point in the history
Address clippy lint violations in Rust 1.66.0
  • Loading branch information
x-hgg-x authored Dec 21, 2022
2 parents 241de45 + a5365f6 commit 55177b8
Showing 1 changed file with 2 additions and 1 deletion.
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());
}
}

0 comments on commit 55177b8

Please # to comment.