**Remove Unused Parameter** refactoring

This commit is contained in:
Aleksey Kladov
2020-08-19 18:44:33 +02:00
parent f5b7540f38
commit 4b5b55f6f3
7 changed files with 163 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ use itertools::Itertools;
use rustc_hash::FxHashSet;
use syntax::{
ast::{self, make, NameOwner},
AstNode,
AstNode, Direction,
SyntaxKind::*,
SyntaxNode, TextSize, T,
};
@@ -311,3 +311,7 @@ pub use prelude::*;
Some(def)
}
}
pub(crate) fn next_prev() -> impl Iterator<Item = Direction> {
[Direction::Next, Direction::Prev].iter().copied()
}