about summary refs log tree commit diff
diff options
context:
space:
mode:
authorasuto15 <sluggard0115@gmail.com>2025-02-15 13:18:18 +0900
committerasuto15 <sluggard0115@gmail.com>2025-02-15 13:18:18 +0900
commiteaf22bcdce02cca4d71fb6619f89fe048026a8bd (patch)
treea53bd3f33a6fda1b0a08c913cb487d3cd158f97b
parent84485a8568f864befdf0eacb7eb275068403dd40 (diff)
downloadrust-eaf22bcdce02cca4d71fb6619f89fe048026a8bd.tar.gz
rust-eaf22bcdce02cca4d71fb6619f89fe048026a8bd.zip
fix: remove unnecessary conversion
-rw-r--r--src/tools/rust-analyzer/crates/ide/src/syntax_highlighting/highlight.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/ide/src/syntax_highlighting/highlight.rs b/src/tools/rust-analyzer/crates/ide/src/syntax_highlighting/highlight.rs
index 92211e9e3a9..194fde11601 100644
--- a/src/tools/rust-analyzer/crates/ide/src/syntax_highlighting/highlight.rs
+++ b/src/tools/rust-analyzer/crates/ide/src/syntax_highlighting/highlight.rs
@@ -703,7 +703,7 @@ fn highlight_name_ref_by_syntax(
     };
 
     match parent.kind() {
-        EXTERN_CRATE => (HlTag::Symbol(SymbolKind::Module) | HlMod::CrateRoot).into(),
+        EXTERN_CRATE => HlTag::Symbol(SymbolKind::Module) | HlMod::CrateRoot,
         METHOD_CALL_EXPR => ast::MethodCallExpr::cast(parent)
             .and_then(|it| highlight_method_call(sema, krate, &it, edition))
             .unwrap_or_else(|| SymbolKind::Method.into()),