style: corrects the use of ';' to improve readability

- remove unnecessary semicolon
and enable lint warning: unnecessary semicolon
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#unnecessary_semicolon
- add `;` to the last statement for consitent formatting
and enable lint `clippy::semicolon_if_nothing_returned`
warning: consider adding a `;` to the last statement for consistent formatting
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#semicolon_if_nothing_returned
This commit is contained in:
Gwen Lg
2026-01-26 14:25:05 +01:00
committed by Alex
parent 08fd6e659f
commit f59a8b7f62
38 changed files with 71 additions and 69 deletions
+5 -5
View File
@@ -484,7 +484,7 @@ where
iter.next();
}
_ => (),
};
}
while let Some(object) = iter.peek() {
if !object.key.starts_with(&query.prefix) {
@@ -508,7 +508,7 @@ where
ExtractionResult::NoMore => {
return Ok(None);
}
};
}
}
if !server_more {
@@ -756,7 +756,7 @@ impl<K: std::cmp::Ord, V> Accumulator<K, V> {
None => Some(ExtractionResult::NoMore),
}
}
};
}
}
}
@@ -1069,7 +1069,7 @@ mod tests {
assert_eq!(upload, Uuid::from([0x8f; 32]));
}
_ => panic!("wrong result"),
};
}
assert_eq!(acc.keys.len(), 2);
assert_eq!(
@@ -1098,7 +1098,7 @@ mod tests {
match acc.extract(&(query().common), &start, &mut iter) {
ExtractionResult::Extracted { key } if key.as_str() == "b" => (),
_ => panic!("wrong result"),
};
}
}
#[tokio::test]