From 2e9194a621ccb33872d6189ecc30a83c17e6e33a Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sun, 10 Feb 2019 12:35:30 +0100 Subject: Spell cases explicitly in Ty::walk{_mut} --- crates/ra_hir/src/ty.rs | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir/src') diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs index 08561573b..2dc1de41a 100644 --- a/crates/ra_hir/src/ty.rs +++ b/crates/ra_hir/src/ty.rs @@ -480,7 +480,15 @@ impl Ty { t.walk(f); } } - _ => {} + Ty::Bool + | Ty::Char + | Ty::Int(_) + | Ty::Float(_) + | Ty::Str + | Ty::Never + | Ty::Param { .. } + | Ty::Infer(_) + | Ty::Unknown => {} } } @@ -526,7 +534,15 @@ impl Ty { } substs.0 = v.into(); } - _ => {} + Ty::Bool + | Ty::Char + | Ty::Int(_) + | Ty::Float(_) + | Ty::Str + | Ty::Never + | Ty::Param { .. } + | Ty::Infer(_) + | Ty::Unknown => {} } } -- cgit v1.2.3