mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
chore: Prefer tracing span shorthand macros
This commit is contained in:
parent
5f3de7863a
commit
27182bb96b
82 changed files with 240 additions and 275 deletions
|
@ -55,7 +55,7 @@ pub(crate) fn highlight_related(
|
|||
config: HighlightRelatedConfig,
|
||||
pos @ FilePosition { offset, file_id }: FilePosition,
|
||||
) -> Option<Vec<HighlightedRange>> {
|
||||
let _p = tracing::span!(tracing::Level::INFO, "highlight_related").entered();
|
||||
let _p = tracing::info_span!("highlight_related").entered();
|
||||
let syntax = sema.parse(file_id).syntax().clone();
|
||||
|
||||
let token = pick_best_token(syntax.token_at_offset(offset), |kind| match kind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue