From ab8730431019ca7328383618d7b95f7858d81c01 Mon Sep 17 00:00:00 2001 From: Yotam Ofek Date: Sat, 8 Nov 2025 12:35:03 +0200 Subject: [PATCH] `map_fn_sig_item` doesn't need a mutable reference --- src/librustdoc/html/render/search_index.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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