mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-12-27 16:07:46 +00:00
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:
parent
21f8445ea5
commit
1d0ae248dc
@ -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>,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user