feat: hide "msg" and "op" parameter names

"msg" adds noise to `expect` and crossbeam's `Sender`. "op" adds noise
to `map_err`
This commit is contained in:
Joe Polny 2025-11-09 18:15:48 -05:00
parent 21f8445ea5
commit 1d0ae248dc
No known key found for this signature in database

View File

@ -111,7 +111,8 @@ fn get_callable<'db>(
}
const INSIGNIFICANT_METHOD_NAMES: &[&str] = &["clone", "as_ref", "into"];
const INSIGNIFICANT_PARAMETER_NAMES: &[&str] = &["predicate", "value", "pat", "rhs", "other"];
const INSIGNIFICANT_PARAMETER_NAMES: &[&str] =
&["predicate", "value", "pat", "rhs", "other", "msg", "op"];
fn should_hide_param_name_hint(
sema: &Semantics<'_, RootDatabase>,