You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-09 15:55:36 +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:
@ -43,7 +43,7 @@ struct Field<'a> {
|
|||||||
value: FieldValue<'a>,
|
value: FieldValue<'a>,
|
||||||
}
|
}
|
||||||
|
|
||||||
trait ProtoMessage<'a>: Default + 'a {
|
trait ProtoMessage<'a>: Default {
|
||||||
fn add_field(&mut self, field: Field<'a>);
|
fn add_field(&mut self, field: Field<'a>);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user