Remove deprecated .deseralize() fn

PiperOrigin-RevId: 656433799
pull/17628/head
Protobuf Team Bot 4 months ago committed by Copybara-Service
parent 6f58085577
commit 9bd81567cf
  1. 4
      src/google/protobuf/compiler/rust/message.cc

@ -1192,10 +1192,6 @@ void GenerateRs(Context& ctx, const Descriptor& msg) {
$raw_arena_getter_for_message$
#[deprecated = "Prefer Msg::parse(), or use the new name 'clear_and_parse' to parse into a pre-existing message."]
pub fn deserialize(&mut self, data: &[u8]) -> Result<(), $pb$::ParseError> {
self.clear_and_parse(data)
}
pub fn clear_and_parse(&mut self, data: &[u8]) -> Result<(), $pb$::ParseError> {
$Msg::clear_and_parse$
}

Loading…
Cancel
Save