diff --git a/src/google/protobuf/compiler/rust/enum.cc b/src/google/protobuf/compiler/rust/enum.cc index 0ed50e98f0..fc3cc16423 100644 --- a/src/google/protobuf/compiler/rust/enum.cc +++ b/src/google/protobuf/compiler/rust/enum.cc @@ -452,7 +452,7 @@ void GenerateEnumDefinition(Context& ctx, const EnumDescriptor& desc) { } fn repeated_reserve( - mut r: $pb$::Mut<$pb$::Repeated>, + r: $pb$::Mut<$pb$::Repeated>, additional: usize, ) { // SAFETY: