From ec32b2e39cb95fc1a9015379de6fe71f230c873d Mon Sep 17 00:00:00 2001 From: WizardOfMenlo Date: Mon, 28 Jan 2019 17:17:04 +0000 Subject: Use match-all instead of individual branches --- crates/ra_hir/src/ty.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'crates/ra_hir/src') 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> { } UnaryOp::Not => { match inner_ty { - Ty::Bool - | Ty::Int(primitive::UncertainIntTy::Unknown) - | Ty::Int(primitive::UncertainIntTy::Signed(..)) - | Ty::Int(primitive::UncertainIntTy::Unsigned(..)) - | Ty::Infer(InferTy::IntVar(..)) => inner_ty, + Ty::Bool | Ty::Int(_) | Ty::Infer(InferTy::IntVar(..)) => inner_ty, // TODO: resolve ops::Not trait for inner_ty _ => Ty::Unknown, } -- cgit v1.2.3