Skip to content

Commit 1d0ae24

Browse files
committed
feat: hide "msg" and "op" parameter names
"msg" adds noise to `expect` and crossbeam's `Sender`. "op" adds noise to `map_err`
1 parent 21f8445 commit 1d0ae24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/ide/src/inlay_hints/param_name.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ fn get_callable<'db>(
111111
}
112112

113113
const INSIGNIFICANT_METHOD_NAMES: &[&str] = &["clone", "as_ref", "into"];
114-
const INSIGNIFICANT_PARAMETER_NAMES: &[&str] = &["predicate", "value", "pat", "rhs", "other"];
114+
const INSIGNIFICANT_PARAMETER_NAMES: &[&str] =
115+
&["predicate", "value", "pat", "rhs", "other", "msg", "op"];
115116

116117
fn should_hide_param_name_hint(
117118
sema: &Semantics<'_, RootDatabase>,

0 commit comments

Comments
 (0)