Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f6b1857

Browse files
committed
fix clippy::unnecessary_mut_passed: function arg is not required to be mutable
1 parent a1c2212 commit f6b1857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_metadata/rmeta/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl<'a, 'tcx> SpecializedEncoder<ExpnId> for EncodeContext<'a, 'tcx> {
162162
fn specialized_encode(&mut self, expn: &ExpnId) -> Result<(), Self::Error> {
163163
rustc_span::hygiene::raw_encode_expn_id(
164164
*expn,
165-
&mut self.hygiene_ctxt,
165+
&self.hygiene_ctxt,
166166
ExpnDataEncodeMode::Metadata,
167167
self,
168168
)

0 commit comments

Comments
 (0)