cargo clippy --fix

This commit is contained in:
Johann Hemmann 2024-01-30 14:25:28 +01:00
parent 628f70156e
commit 43b1ae0446
5 changed files with 5 additions and 5 deletions

View file

@ -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 {