From 5d69d8c87bfc4f6ea5993cffb59c245e05abe050 Mon Sep 17 00:00:00 2001 From: Jason Lin Date: Wed, 10 Jul 2024 07:20:00 +1000 Subject: [PATCH] Remove lifetime trait bound on ProtoMessage (#2187) The lifetime trait bound is unncessary, and the code compiles without it. --- src/lifetimes/exercise.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lifetimes/exercise.rs b/src/lifetimes/exercise.rs index 7ab8e891..17b19483 100644 --- a/src/lifetimes/exercise.rs +++ b/src/lifetimes/exercise.rs @@ -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>); }