mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
cargo clippy --fix
This commit is contained in:
parent
628f70156e
commit
43b1ae0446
5 changed files with 5 additions and 5 deletions
|
@ -311,7 +311,7 @@ fn modpath_from_str(link: &str) -> Option<ModPath> {
|
|||
"self" => PathKind::Super(0),
|
||||
"super" => {
|
||||
let mut deg = 1;
|
||||
while let Some(segment) = parts.next() {
|
||||
for segment in parts.by_ref() {
|
||||
if segment == "super" {
|
||||
deg += 1;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue