Skip to content

Commit

Permalink
Fix warning from unnecessary mut on fn arg.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 725625112
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Feb 11, 2025
1 parent 6ace555 commit b0ceb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/rust/message.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<MutProxied = Self>) {
fn take_from(&mut self, src: impl $pb$::AsMut<MutProxied = Self>) {
let mut m = self.as_mut();
$pb$::TakeFrom::take_from(&mut m, src)
}
Expand Down

0 comments on commit b0ceb8a

Please sign in to comment.