From c9b4ac5be4daaabc062ab1ee663eba8594750003 Mon Sep 17 00:00:00 2001 From: Maan2003 Date: Sun, 13 Jun 2021 09:24:16 +0530 Subject: clippy::redudant_borrow --- crates/ide/src/syntax_highlighting.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ide/src/syntax_highlighting.rs') diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs index b03f1c71f..e186b82b7 100644 --- a/crates/ide/src/syntax_highlighting.rs +++ b/crates/ide/src/syntax_highlighting.rs @@ -323,7 +323,7 @@ fn traverse( if let Some(token) = element.as_token().cloned().and_then(ast::String::cast) { if token.is_raw() { let expanded = element_to_highlight.as_token().unwrap().clone(); - if inject::ra_fixture(hl, &sema, token, expanded).is_some() { + if inject::ra_fixture(hl, sema, token, expanded).is_some() { continue; } } @@ -334,7 +334,7 @@ fn traverse( } if let Some((mut highlight, binding_hash)) = highlight::element( - &sema, + sema, krate, &mut bindings_shadow_count, syntactic_name_ref_highlighting, -- cgit v1.2.3