aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/inlay_hints.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/inlay_hints.rs')
-rw-r--r--crates/ra_ide/src/inlay_hints.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/ra_ide/src/inlay_hints.rs b/crates/ra_ide/src/inlay_hints.rs
index 3fd08b1e8..886346991 100644
--- a/crates/ra_ide/src/inlay_hints.rs
+++ b/crates/ra_ide/src/inlay_hints.rs
@@ -312,10 +312,8 @@ fn get_string_representation(expr: &ast::Expr) -> Option<String> {
312} 312}
313 313
314fn is_obvious_param(param_name: &str) -> bool { 314fn is_obvious_param(param_name: &str) -> bool {
315 let is_obvious_param_name = match param_name { 315 let is_obvious_param_name =
316 "predicate" | "value" | "pat" | "rhs" | "other" => true, 316 matches!(param_name, "predicate" | "value" | "pat" | "rhs" | "other");
317 _ => false,
318 };
319 param_name.len() == 1 || is_obvious_param_name 317 param_name.len() == 1 || is_obvious_param_name
320} 318}
321 319