aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/utils.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-08-19 18:49:36 +0100
committerGitHub <[email protected]>2020-08-19 18:49:36 +0100
commitbb07e6bdee234d4408c3733307d6134597b531ec (patch)
treea51117f4fed220e42ed145b4d82d752545f28d82 /crates/assists/src/utils.rs
parentf5b7540f388e815b3c4c2fb28b8233c724e0a838 (diff)
parent4b5b55f6f3d1879cd974f290e2f0d92f487acc4b (diff)
Merge #5821
5821: **Remove Unused Parameter** refactoring r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/assists/src/utils.rs')
-rw-r--r--crates/assists/src/utils.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/assists/src/utils.rs b/crates/assists/src/utils.rs
index 84ccacafe..d071d6502 100644
--- a/crates/assists/src/utils.rs
+++ b/crates/assists/src/utils.rs
@@ -9,7 +9,7 @@ use itertools::Itertools;
9use rustc_hash::FxHashSet; 9use rustc_hash::FxHashSet;
10use syntax::{ 10use syntax::{
11 ast::{self, make, NameOwner}, 11 ast::{self, make, NameOwner},
12 AstNode, 12 AstNode, Direction,
13 SyntaxKind::*, 13 SyntaxKind::*,
14 SyntaxNode, TextSize, T, 14 SyntaxNode, TextSize, T,
15}; 15};
@@ -311,3 +311,7 @@ pub use prelude::*;
311 Some(def) 311 Some(def)
312 } 312 }
313} 313}
314
315pub(crate) fn next_prev() -> impl Iterator<Item = Direction> {
316 [Direction::Next, Direction::Prev].iter().copied()
317}