about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-10-26 21:02:48 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-10-30 10:13:39 -0400
commit57c6ed0c07aaea9c89a192e54b3274464ebe6fbf (patch)
tree98a2c0310690cf0c09851cb5a12a99264bbbf522 /compiler/rustc_codegen_llvm/src/builder.rs
parentbfecb18771aa0249efe05dd7c35fa232f180bb70 (diff)
downloadrust-57c6ed0c07aaea9c89a192e54b3274464ebe6fbf.tar.gz
rust-57c6ed0c07aaea9c89a192e54b3274464ebe6fbf.zip
Fix even more clippy warnings
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/builder.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs
index 978ad37c0f3..f122fa14e70 100644
--- a/compiler/rustc_codegen_llvm/src/builder.rs
+++ b/compiler/rustc_codegen_llvm/src/builder.rs
@@ -732,10 +732,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
         let src_ty = self.cx.val_ty(val);
         let float_width = self.cx.float_width(src_ty);
         let int_width = self.cx.int_width(dest_ty);
-        match (int_width, float_width) {
-            (32, 32) | (32, 64) | (64, 32) | (64, 64) => true,
-            _ => false,
-        }
+        matches!((int_width, float_width), (32, 32) | (32, 64) | (64, 32) | (64, 64))
     }
 
     fn fptoui(&mut self, val: &'ll Value, dest_ty: &'ll Type) -> &'ll Value {