mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
use pointer args
This commit is contained in:
parent
ed128872eb
commit
7530d76f00
3 changed files with 3 additions and 3 deletions
|
@ -514,7 +514,7 @@ fn fn_args(
|
|||
/// vec!["foo_1".into(), "foo_2".into(), "bar_1".into(), "baz".into(), "bar_2".into()];
|
||||
/// assert_eq!(names, expected);
|
||||
/// ```
|
||||
fn deduplicate_arg_names(arg_names: &mut Vec<String>) {
|
||||
fn deduplicate_arg_names(arg_names: &mut [String]) {
|
||||
let mut arg_name_counts = FxHashMap::default();
|
||||
for name in arg_names.iter() {
|
||||
*arg_name_counts.entry(name).or_insert(0) += 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue