Skip to content

Commit eaf22bc

Browse files
committed
fix: remove unnecessary conversion
1 parent 84485a8 commit eaf22bc

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/crates/ide/src/syntax_highlighting

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/ide/src/syntax_highlighting/highlight.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ fn highlight_name_ref_by_syntax(
703703
};
704704

705705
match parent.kind() {
706-
EXTERN_CRATE => (HlTag::Symbol(SymbolKind::Module) | HlMod::CrateRoot).into(),
706+
EXTERN_CRATE => HlTag::Symbol(SymbolKind::Module) | HlMod::CrateRoot,
707707
METHOD_CALL_EXPR => ast::MethodCallExpr::cast(parent)
708708
.and_then(|it| highlight_method_call(sema, krate, &it, edition))
709709
.unwrap_or_else(|| SymbolKind::Method.into()),

0 commit comments

Comments
 (0)