We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 650fb9d commit 49d8696Copy full SHA for 49d8696
crates/rustfix/src/replace.rs
@@ -255,6 +255,7 @@ mod tests {
255
}
256
257
#[test]
258
+ #[allow(clippy::reversed_empty_ranges)]
259
fn replace_invalid_range() {
260
let mut d = Data::new(b"foo!");
261
src/cargo/util/mod.rs
@@ -176,8 +176,8 @@ mod test {
176
);
177
assert_eq!(human_readable_bytes(1024 * 1024 * 1024), (1., "GiB"));
178
assert_eq!(
179
- human_readable_bytes((1024. * 1024. * 1024. * 3.1415) as u64),
180
- (3.1415, "GiB")
+ human_readable_bytes((1024. * 1024. * 1024. * 1.2345) as u64),
+ (1.2345, "GiB")
181
182
assert_eq!(human_readable_bytes(1024 * 1024 * 1024 * 1024), (1., "TiB"));
183
0 commit comments