mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
refactor(semantic): rename lifetime on impl IntoIterator for &AstNodes (#5881)
Follow on after #5873. Rename lifetime. I generally consider `'a` in AST types as short for `'ast`, so using `'ast` to mean something else is confusing. Rename lifetime to `'n` (short for `'nodes`).
This commit is contained in:
parent
6c04fa1e46
commit
d910304eac
1 changed files with 3 additions and 3 deletions
|
|
@ -266,9 +266,9 @@ impl<'a> AstNodes<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'ast, 'a> IntoIterator for &'ast AstNodes<'a> {
|
||||
type Item = &'ast AstNode<'a>;
|
||||
type IntoIter = std::slice::Iter<'ast, AstNode<'a>>;
|
||||
impl<'a, 'n> IntoIterator for &'n AstNodes<'a> {
|
||||
type Item = &'n AstNode<'a>;
|
||||
type IntoIter = std::slice::Iter<'n, AstNode<'a>>;
|
||||
|
||||
fn into_iter(self) -> Self::IntoIter {
|
||||
self.nodes.iter()
|
||||
|
|
|
|||
Loading…
Reference in a new issue