Skip to content

Commit 78443c5

Browse files
committed
Receive immutable referenes where mutable ones aren't needed
1 parent c861695 commit 78443c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ fn is_glob_import(tcx: TyCtxt<'_>, import_id: LocalDefId) -> bool {
178178
}
179179

180180
fn generate_item_with_correct_attrs(
181-
cx: &mut DocContext<'_>,
181+
cx: &DocContext<'_>,
182182
kind: ItemKind,
183183
def_id: DefId,
184184
name: Symbol,
@@ -2622,7 +2622,7 @@ pub(crate) fn reexport_chain(
26222622

26232623
/// Collect attributes from the whole import chain.
26242624
fn get_all_import_attributes<'hir>(
2625-
cx: &mut DocContext<'hir>,
2625+
cx: &DocContext<'hir>,
26262626
import_def_id: LocalDefId,
26272627
target_def_id: DefId,
26282628
is_inline: bool,

0 commit comments

Comments
 (0)