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:
@@ -122,10 +122,7 @@ pub(super) fn validate_manifest_destination(path: &Path) -> eyre::Result<()> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) fn preflight_package_version(
|
pub(super) fn preflight_package_version(package_root: &Path, expected: &str) -> eyre::Result<()> {
|
||||||
package_root: &Path,
|
|
||||||
expected: &str,
|
|
||||||
) -> eyre::Result<()> {
|
|
||||||
validate_regular_directory(package_root)?;
|
validate_regular_directory(package_root)?;
|
||||||
validate_package_version(package_root, expected)
|
validate_package_version(package_root, expected)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -799,10 +799,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
assert!(!limiter.admit(flood, now));
|
assert!(!limiter.admit(flood, now));
|
||||||
assert!(limiter.admit(healthy, now));
|
assert!(limiter.admit(healthy, now));
|
||||||
assert!(limiter.admit(
|
assert!(limiter.admit(flood, now + crate::config::QUIC_HANDSHAKE_TIMEOUT));
|
||||||
flood,
|
|
||||||
now + crate::config::QUIC_HANDSHAKE_TIMEOUT
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user