style: format final security fixes

Record the repository formatter's deterministic layout for the catalog-preflight helper and handshake-window assertion.

Test Plan:
- just fmt
- just clippy
- just test
- git diff --check
This commit is contained in:
2026-09-12 13:44:27 +02:00
parent 3dfb98f249
commit 6622ae21f3
2 changed files with 2 additions and 8 deletions
@@ -122,10 +122,7 @@ pub(super) fn validate_manifest_destination(path: &Path) -> eyre::Result<()> {
Ok(())
}
pub(super) fn preflight_package_version(
package_root: &Path,
expected: &str,
) -> eyre::Result<()> {
pub(super) fn preflight_package_version(package_root: &Path, expected: &str) -> eyre::Result<()> {
validate_regular_directory(package_root)?;
validate_package_version(package_root, expected)
}
+1 -4
View File
@@ -799,10 +799,7 @@ mod tests {
}
assert!(!limiter.admit(flood, now));
assert!(limiter.admit(healthy, now));
assert!(limiter.admit(
flood,
now + crate::config::QUIC_HANDSHAKE_TIMEOUT
));
assert!(limiter.admit(flood, now + crate::config::QUIC_HANDSHAKE_TIMEOUT));
}
#[test]