mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
rustfmt tests to fix build
This commit is contained in:
parent
219da6d736
commit
27d47f970a
2 changed files with 3 additions and 3 deletions
|
@ -90,7 +90,7 @@ fn test_ops() {
|
|||
|
||||
assert_eq!(half_any, half32);
|
||||
assert_eq!(half_any, half64);
|
||||
assert_eq!(half32, half64); // for transitivity
|
||||
assert_eq!(half32, half64) // for transitivity
|
||||
|
||||
assert_eq!(Constant::Int(ConstInt::Infer(0)), Constant::Int(ConstInt::U8(0)));
|
||||
assert_eq!(Constant::Int(ConstInt::Infer(0)), Constant::Int(ConstInt::I8(0)));
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
fn rust_type_id(name: String) {
|
||||
if "bool" == &name[..] || "uint" == &name[..] || "u8" == &name[..] || "u16" == &name[..] ||
|
||||
"u32" == &name[..] || "f32" == &name[..] || "f64" == &name[..] || "i8" == &name[..] ||
|
||||
"i16" == &name[..] || "i32" == &name[..] || "i64" == &name[..] ||
|
||||
"Self" == &name[..] || "str" == &name[..] {
|
||||
"i16" == &name[..] || "i32" == &name[..] ||
|
||||
"i64" == &name[..] || "Self" == &name[..] || "str" == &name[..] {
|
||||
unreachable!();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue