File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ impl Attrs {
117117}
118118
119119impl Attrs {
120- pub fn by_key < ' attrs > ( & ' attrs self , key : & ' attrs Symbol ) -> AttrQuery < ' _ > {
120+ pub fn by_key < ' attrs > ( & ' attrs self , key : & ' attrs Symbol ) -> AttrQuery < ' attrs > {
121121 AttrQuery { attrs : self , key }
122122 }
123123
@@ -594,7 +594,7 @@ impl<'attr> AttrQuery<'attr> {
594594 /// #[doc(html_root_url = "url")]
595595 /// ^^^^^^^^^^^^^ key
596596 /// ```
597- pub fn find_string_value_in_tt ( self , key : & ' attr Symbol ) -> Option < & str > {
597+ pub fn find_string_value_in_tt ( self , key : & ' attr Symbol ) -> Option < & ' attr str > {
598598 self . tt_values ( ) . find_map ( |tt| {
599599 let name = tt. token_trees . iter ( )
600600 . skip_while ( |tt| !matches ! ( tt, tt:: TokenTree :: Leaf ( tt:: Leaf :: Ident ( tt:: Ident { sym, ..} ) ) if * sym == * key) )
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ impl Body {
197197 pub fn blocks < ' a > (
198198 & ' a self ,
199199 db : & ' a dyn DefDatabase ,
200- ) -> impl Iterator < Item = ( BlockId , Arc < DefMap > ) > + ' _ {
200+ ) -> impl Iterator < Item = ( BlockId , Arc < DefMap > ) > + ' a {
201201 self . block_scopes . iter ( ) . map ( move |& block| ( block, db. block_def_map ( block) ) )
202202 }
203203
You can’t perform that action at this time.
0 commit comments