diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-30 12:10:20 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-30 12:10:20 +0100 |
commit | 0b68e03bf56c00f63fcc65e7879cc64c6d5c4f30 (patch) | |
tree | 7315bbd5fc4e27b40d6f677627e5f66e83ef67dc /crates/ide/src/hover.rs | |
parent | 563464bfaeec9e39de52cd12c435c299fe544b71 (diff) | |
parent | 4fcba8b1bf1b94839902c0803501163b7628b33d (diff) |
Merge #8256
8256: Item movers improvements r=ivan770 a=ivan770
Closes #8236
Co-authored-by: ivan770 <[email protected]>
Diffstat (limited to 'crates/ide/src/hover.rs')
-rw-r--r-- | crates/ide/src/hover.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs index 3c951c507..02a1a5b37 100644 --- a/crates/ide/src/hover.rs +++ b/crates/ide/src/hover.rs | |||
@@ -470,6 +470,7 @@ fn find_std_module(famous_defs: &FamousDefs, name: &str) -> Option<hir::Module> | |||
470 | 470 | ||
471 | fn pick_best(tokens: TokenAtOffset<SyntaxToken>) -> Option<SyntaxToken> { | 471 | fn pick_best(tokens: TokenAtOffset<SyntaxToken>) -> Option<SyntaxToken> { |
472 | return tokens.max_by_key(priority); | 472 | return tokens.max_by_key(priority); |
473 | |||
473 | fn priority(n: &SyntaxToken) -> usize { | 474 | fn priority(n: &SyntaxToken) -> usize { |
474 | match n.kind() { | 475 | match n.kind() { |
475 | IDENT | INT_NUMBER | LIFETIME_IDENT | T![self] | T![super] | T![crate] => 3, | 476 | IDENT | INT_NUMBER | LIFETIME_IDENT | T![self] | T![super] | T![crate] => 3, |