fix clippy::unnecessary_mut_passed: function arg is not required to be mutable

This commit is contained in:
Matthias Krüger 2020-08-01 18:01:19 +02:00
parent a1c22122da
commit f6b1857353

View File

@ -162,7 +162,7 @@ impl<'a, 'tcx> SpecializedEncoder<ExpnId> for EncodeContext<'a, 'tcx> {
fn specialized_encode(&mut self, expn: &ExpnId) -> Result<(), Self::Error> {
rustc_span::hygiene::raw_encode_expn_id(
*expn,
&mut self.hygiene_ctxt,
&self.hygiene_ctxt,
ExpnDataEncodeMode::Metadata,
self,
)