preparing for v1.100.0

This commit is contained in:
Mick Grove 2026-05-18 15:51:16 -07:00
commit f1c6f50d9a
3 changed files with 6 additions and 3 deletions

View file

@ -24,6 +24,7 @@ validation-http = [
"dep:liquid-core",
"dep:quick-xml",
"dep:sha1",
"dep:hex",
"dep:time",
]

View file

@ -229,7 +229,9 @@ pub fn extract_zip_archive_in_memory(
/// short-circuit extraction attempts on blobs whose extension matches a
/// ZIP-based format but whose contents are not actually a real ZIP.
pub fn looks_like_zip(data: &[u8]) -> bool {
matches!(data.get(..4), Some(b"PK\x03\x04" | b"PK\x05\x06" | b"PK\x07\x08"))
data.starts_with(b"PK\x03\x04")
|| data.starts_with(b"PK\x05\x06")
|| data.starts_with(b"PK\x07\x08")
}
fn handle_zip_archive_streaming(

View file

@ -841,9 +841,9 @@ impl<'a> rayon::iter::ParallelIterator for GitRepoResultIter<'a> {
};
// After flat-mapping, errors and successes both flow as
// `Result<(OriginSet, Blob)>`. Filter out the silenced timeout
// `Result<(OriginSet, Blob<'a>)>`. Filter out the silenced timeout
// marker before handing items to the scan consumer.
let timeout_filter = |res: &Result<(OriginSet, Blob)>| -> bool {
let timeout_filter = |res: &Result<(OriginSet, Blob<'a>)>| -> bool {
!matches!(res, Err(e) if e.to_string() == "__timeout_silenced__")
};