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:
parent
550cc39ee4
commit
5d69d8c87b
@ -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>);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user