aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorWizardOfMenlo <[email protected]>2019-01-28 17:17:04 +0000
committerWizardOfMenlo <[email protected]>2019-01-28 17:17:04 +0000
commitec32b2e39cb95fc1a9015379de6fe71f230c873d (patch)
tree136f168e72614b8f1b04d9c8ca353bfb347fa56c /crates
parent9416904d148129a6e0315fd139ae5ae516ff104c (diff)
Use match-all instead of individual branches
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_hir/src/ty.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs
index 81cff8c47..7a5485698 100644
--- a/crates/ra_hir/src/ty.rs
+++ b/crates/ra_hir/src/ty.rs
@@ -1590,11 +1590,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
1590 } 1590 }
1591 UnaryOp::Not => { 1591 UnaryOp::Not => {
1592 match inner_ty { 1592 match inner_ty {
1593 Ty::Bool 1593 Ty::Bool | Ty::Int(_) | Ty::Infer(InferTy::IntVar(..)) => inner_ty,
1594 | Ty::Int(primitive::UncertainIntTy::Unknown)
1595 | Ty::Int(primitive::UncertainIntTy::Signed(..))
1596 | Ty::Int(primitive::UncertainIntTy::Unsigned(..))
1597 | Ty::Infer(InferTy::IntVar(..)) => inner_ty,
1598 // TODO: resolve ops::Not trait for inner_ty 1594 // TODO: resolve ops::Not trait for inner_ty
1599 _ => Ty::Unknown, 1595 _ => Ty::Unknown,
1600 } 1596 }