Skip to content

Commit

Permalink
style: Workaround clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Nov 8, 2024
1 parent 650fb9d commit 49d8696
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/rustfix/src/replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ mod tests {
}

#[test]
#[allow(clippy::reversed_empty_ranges)]
fn replace_invalid_range() {
let mut d = Data::new(b"foo!");

Expand Down
4 changes: 2 additions & 2 deletions src/cargo/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ mod test {
);
assert_eq!(human_readable_bytes(1024 * 1024 * 1024), (1., "GiB"));
assert_eq!(
human_readable_bytes((1024. * 1024. * 1024. * 3.1415) as u64),
(3.1415, "GiB")
human_readable_bytes((1024. * 1024. * 1024. * 1.2345) as u64),
(1.2345, "GiB")
);
assert_eq!(human_readable_bytes(1024 * 1024 * 1024 * 1024), (1., "TiB"));
assert_eq!(
Expand Down

0 comments on commit 49d8696

Please sign in to comment.