Skip to content

Commit a2dec78

Browse files
committed
map_fn_sig_item doesn't need a mutable reference
1 parent 2c0f486 commit a2dec78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustdoc/html/render/search_index.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ impl SerializedSearchIndex {
458458
other.descs[other_entryid].clone(),
459459
other.function_data[other_entryid].clone().map(|mut func| {
460460
fn map_fn_sig_item(
461-
map_other_pathid_to_self_pathid: &mut Vec<usize>,
461+
map_other_pathid_to_self_pathid: &Vec<usize>,
462462
ty: &mut RenderType,
463463
) {
464464
match ty.id {
@@ -501,14 +501,14 @@ impl SerializedSearchIndex {
501501
}
502502
}
503503
for input in &mut func.inputs {
504-
map_fn_sig_item(&mut map_other_pathid_to_self_pathid, input);
504+
map_fn_sig_item(&map_other_pathid_to_self_pathid, input);
505505
}
506506
for output in &mut func.output {
507-
map_fn_sig_item(&mut map_other_pathid_to_self_pathid, output);
507+
map_fn_sig_item(&map_other_pathid_to_self_pathid, output);
508508
}
509509
for clause in &mut func.where_clause {
510510
for entry in clause {
511-
map_fn_sig_item(&mut map_other_pathid_to_self_pathid, entry);
511+
map_fn_sig_item(&map_other_pathid_to_self_pathid, entry);
512512
}
513513
}
514514
func

0 commit comments

Comments
 (0)