mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
remove unnecessary lifetimes that can be elided
This commit is contained in:
parent
8615bba105
commit
4f8ffd0ba4
11 changed files with 49 additions and 63 deletions
|
@ -142,8 +142,8 @@ pub enum WherePredicateTypeTarget {
|
|||
|
||||
impl GenericParams {
|
||||
/// Iterator of type_or_consts field
|
||||
pub fn iter<'a>(
|
||||
&'a self,
|
||||
pub fn iter(
|
||||
&self,
|
||||
) -> impl DoubleEndedIterator<Item = (Idx<TypeOrConstParamData>, &TypeOrConstParamData)> {
|
||||
self.type_or_consts.iter()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue