mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-19 18:10:25 +00:00
indentation
This commit is contained in:
parent
58c1949a7b
commit
ddbf484acf
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue