mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
indentation
This commit is contained in:
parent
58c1949a7b
commit
ddbf484acf
@ -197,9 +197,9 @@ impl ast::UseTreeList {
|
|||||||
pub fn has_inner_comment(&self) -> bool {
|
pub fn has_inner_comment(&self) -> bool {
|
||||||
self.syntax()
|
self.syntax()
|
||||||
.children_with_tokens()
|
.children_with_tokens()
|
||||||
.filter_map(|it| it.into_token())
|
.filter_map(|it| it.into_token())
|
||||||
.find_map(ast::Comment::cast)
|
.find_map(ast::Comment::cast)
|
||||||
.is_some()
|
.is_some()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user