mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Formatting
This commit is contained in:
parent
c660a5ce34
commit
8a92910f97
3 changed files with 19 additions and 11 deletions
|
@ -2,8 +2,8 @@
|
|||
use itertools::Itertools;
|
||||
use parser::T;
|
||||
use syntax::{
|
||||
ast::{self, HasLoopBody, PathSegmentKind, VisibilityKind, NameRef},
|
||||
AstNode, Preorder, RustLanguage, WalkEvent, AstToken,
|
||||
ast::{self, HasLoopBody, NameRef, PathSegmentKind, VisibilityKind},
|
||||
AstNode, AstToken, Preorder, RustLanguage, WalkEvent,
|
||||
};
|
||||
|
||||
pub fn expr_as_name_ref(expr: &ast::Expr) -> Option<ast::NameRef> {
|
||||
|
@ -463,4 +463,4 @@ pub fn get_outer_macro_name(string: &ast::String) -> Option<NameRef> {
|
|||
let name = macro_call.path()?.segment()?.name_ref()?;
|
||||
|
||||
Some(name)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue