@@ -185,7 +185,11 @@ where
185185
186186 /// Remove the annotation given by its `key` for a specific `item`
187187 /// Returns the value for that annotation, if it existed.
188- fn remove_annotation_for_item ( & mut self , item : & T , key : & AnnoKey ) -> Result < Option < Cow < str > > > ;
188+ fn remove_annotation_for_item (
189+ & mut self ,
190+ item : & T ,
191+ key : & AnnoKey ,
192+ ) -> Result < Option < Cow < ' _ , str > > > ;
189193
190194 /// Remove all annotations for the given item. Returns whether the item had
191195 /// any annotations.
@@ -201,7 +205,7 @@ where
201205 fn get_annotations_for_item ( & self , item : & T ) -> Result < Vec < Annotation > > ;
202206
203207 /// Get the annotation for a given `item` and the annotation `key`.
204- fn get_value_for_item ( & self , item : & T , key : & AnnoKey ) -> Result < Option < Cow < str > > > ;
208+ fn get_value_for_item ( & self , item : & T , key : & AnnoKey ) -> Result < Option < Cow < ' _ , str > > > ;
205209
206210 /// Returns `true` if the given `item` has an annotation for the given `key`.
207211 fn has_value_for_item ( & self , item : & T , key : & AnnoKey ) -> Result < bool > ;
@@ -243,7 +247,7 @@ where
243247 ) -> Box < dyn Iterator < Item = Result < Match > > + ' a > ;
244248
245249 /// Returns an iterator for all items where the value matches the regular expression.
246- /// The annotation `name` and the `pattern` for the value must be given as argument, the
250+ /// The annotation `name` and the `pattern` for the value must be given as argument, the
247251 /// `namespace` argument is optional and can be used as additional constraint.
248252 ///
249253 /// - `namespace`- If given, only annotations having this namespace are returned.
@@ -287,11 +291,16 @@ where
287291 /// Estimate the most frequent value for a given annotation `name` with an optional namespace (`ns`).
288292 ///
289293 /// If more than one qualified annotation name matches the defnition, the more frequent value is used.
290- fn guess_most_frequent_value ( & self , ns : Option < & str > , name : & str ) -> Result < Option < Cow < str > > > ;
294+ fn guess_most_frequent_value (
295+ & self ,
296+ ns : Option < & str > ,
297+ name : & str ,
298+ ) -> Result < Option < Cow < ' _ , str > > > ;
291299
292300 /// Return a list of all existing values for a given annotation `key`.
293301 /// If the `most_frequent_first` parameter is true, the results are sorted by their frequency.
294- fn get_all_values ( & self , key : & AnnoKey , most_frequent_first : bool ) -> Result < Vec < Cow < str > > > ;
302+ fn get_all_values ( & self , key : & AnnoKey , most_frequent_first : bool )
303+ -> Result < Vec < Cow < ' _ , str > > > ;
295304
296305 /// Get all the annotation keys which are part of this annotation storage
297306 fn annotation_keys ( & self ) -> Result < Vec < AnnoKey > > ;
0 commit comments