mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Fix a couple of clippy nits
This commit is contained in:
parent
a36c9d8b5c
commit
efcc487dff
2 changed files with 4 additions and 4 deletions
|
@ -217,8 +217,8 @@ fn highlight_yield_points(token: SyntaxToken) -> Option<Vec<HighlightedRange>> {
|
|||
async_token: Option<SyntaxToken>,
|
||||
body: Option<ast::Expr>,
|
||||
) -> Option<Vec<HighlightedRange>> {
|
||||
let mut highlights = Vec::new();
|
||||
highlights.push(HighlightedRange { access: None, range: async_token?.text_range() });
|
||||
let mut highlights =
|
||||
vec![HighlightedRange { access: None, range: async_token?.text_range() }];
|
||||
if let Some(body) = body {
|
||||
body.walk(&mut |expr| {
|
||||
if let ast::Expr::AwaitExpr(expr) = expr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue