Skip to content

Commit

Permalink
Remove lifetime trait bound on ProtoMessage (#2187)
Browse files Browse the repository at this point in the history
The lifetime trait bound is unncessary, and the code compiles without
it.
  • Loading branch information
JasonXJ committed Jul 9, 2024
1 parent 550cc39 commit 5d69d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lifetimes/exercise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>);
}

Expand Down

0 comments on commit 5d69d8c

Please sign in to comment.