Skip to content

Commit 49d8696

Browse files
committed
style: Workaround clippy
1 parent 650fb9d commit 49d8696

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

crates/rustfix/src/replace.rs

+1
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ mod tests {
255255
}
256256

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

src/cargo/util/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ mod test {
176176
);
177177
assert_eq!(human_readable_bytes(1024 * 1024 * 1024), (1., "GiB"));
178178
assert_eq!(
179-
human_readable_bytes((1024. * 1024. * 1024. * 3.1415) as u64),
180-
(3.1415, "GiB")
179+
human_readable_bytes((1024. * 1024. * 1024. * 1.2345) as u64),
180+
(1.2345, "GiB")
181181
);
182182
assert_eq!(human_readable_bytes(1024 * 1024 * 1024 * 1024), (1., "TiB"));
183183
assert_eq!(

0 commit comments

Comments
 (0)