Skip to content

Commit d6c3070

Browse files
bors[bot]matklad
andauthored
Merge #11128
11128: import style r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 05f7924 + 621ba1c commit d6c3070

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/ide_db/src/helpers.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use base_db::FileId;
1414
use hir::{ItemInNs, MacroDef, ModuleDef, Name, PathResolution, Semantics};
1515
use itertools::Itertools;
1616
use syntax::{
17-
ast::{self, make, HasLoopBody, Ident},
17+
ast::{self, make, HasLoopBody},
1818
AstNode, AstToken, Direction, SyntaxElement, SyntaxKind, SyntaxToken, TokenAtOffset, WalkEvent,
1919
T,
2020
};
@@ -38,7 +38,7 @@ pub fn item_name(db: &RootDatabase, item: ItemInNs) -> Option<Name> {
3838
pub fn get_path_in_derive_attr(
3939
sema: &hir::Semantics<RootDatabase>,
4040
attr: &ast::Attr,
41-
cursor: &Ident,
41+
cursor: &ast::Ident,
4242
) -> Option<ast::Path> {
4343
let path = attr.path()?;
4444
let tt = attr.token_tree()?;
@@ -55,7 +55,7 @@ pub fn get_path_in_derive_attr(
5555
}
5656

5757
/// Parses the path the identifier is part of inside a token tree.
58-
pub fn get_path_at_cursor_in_tt(cursor: &Ident) -> Option<ast::Path> {
58+
pub fn get_path_at_cursor_in_tt(cursor: &ast::Ident) -> Option<ast::Path> {
5959
let cursor = cursor.syntax();
6060
let first = cursor
6161
.siblings_with_tokens(Direction::Prev)
@@ -75,7 +75,7 @@ pub fn get_path_at_cursor_in_tt(cursor: &Ident) -> Option<ast::Path> {
7575
pub fn try_resolve_derive_input(
7676
sema: &hir::Semantics<RootDatabase>,
7777
attr: &ast::Attr,
78-
cursor: &Ident,
78+
cursor: &ast::Ident,
7979
) -> Option<PathResolution> {
8080
let path = get_path_in_derive_attr(sema, attr, cursor)?;
8181
let scope = sema.scope(attr.syntax());

0 commit comments

Comments
 (0)