1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-22 06:51:58 +02:00

Remove lifetime trait bound on ProtoMessage (#2187)

The lifetime trait bound is unncessary, and the code compiles without
it.
This commit is contained in:
Jason Lin 2024-07-10 07:20:00 +10:00 committed by GitHub
parent 550cc39ee4
commit 5d69d8c87b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@ struct Field<'a> {
value: FieldValue<'a>,
}
trait ProtoMessage<'a>: Default + 'a {
trait ProtoMessage<'a>: Default {
fn add_field(&mut self, field: Field<'a>);
}