From b0ceb8a956423ea0ccf15ffc1b6ae68ba93e99e7 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Tue, 11 Feb 2025 07:35:47 -0800 Subject: [PATCH] Fix warning from unnecessary `mut` on fn arg. PiperOrigin-RevId: 725625112 --- src/google/protobuf/compiler/rust/message.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/rust/message.cc b/src/google/protobuf/compiler/rust/message.cc index fe078ed880c0a..74cc2deee5c97 100644 --- a/src/google/protobuf/compiler/rust/message.cc +++ b/src/google/protobuf/compiler/rust/message.cc @@ -801,7 +801,7 @@ void GenerateRs(Context& ctx, const Descriptor& msg) { } impl $pb$::TakeFrom for $Msg$ { - fn take_from(&mut self, mut src: impl $pb$::AsMut) { + fn take_from(&mut self, src: impl $pb$::AsMut) { let mut m = self.as_mut(); $pb$::TakeFrom::take_from(&mut m, src) }