diff --git a/src/librustdoc/html/render/search_index.rs b/src/librustdoc/html/render/search_index.rs
index 3514c517d913..33a86a54636a 100644
--- a/src/librustdoc/html/render/search_index.rs
+++ b/src/librustdoc/html/render/search_index.rs
@@ -458,7 +458,7 @@ pub(crate) fn union(mut self, other: &SerializedSearchIndex) -> SerializedSearch
other.descs[other_entryid].clone(),
other.function_data[other_entryid].clone().map(|mut func| {
fn map_fn_sig_item(
- map_other_pathid_to_self_pathid: &mut Vec,
+ map_other_pathid_to_self_pathid: &Vec,
ty: &mut RenderType,
) {
match ty.id {
@@ -501,14 +501,14 @@ fn map_fn_sig_item(
}
}
for input in &mut func.inputs {
- map_fn_sig_item(&mut map_other_pathid_to_self_pathid, input);
+ map_fn_sig_item(&map_other_pathid_to_self_pathid, input);
}
for output in &mut func.output {
- map_fn_sig_item(&mut map_other_pathid_to_self_pathid, output);
+ map_fn_sig_item(&map_other_pathid_to_self_pathid, output);
}
for clause in &mut func.where_clause {
for entry in clause {
- map_fn_sig_item(&mut map_other_pathid_to_self_pathid, entry);
+ map_fn_sig_item(&map_other_pathid_to_self_pathid, entry);
}
}
func