mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 09:45:36 +00:00
fix(deps): move zip off the yanked 2.4.2, to 9.0.4
Every zip 2.x release from 2.4.2 on is yanked; crates.io warned on each 0.3.2 publish. zip 9 returns entry names as a Result (it validates their encoding): skip undecodable names, which can be neither the archive's TXT payload nor an XLSX worksheet. zip 9 needs Rust 1.88, within our 1.89. Closes #51. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh
This commit is contained in:
parent
1adf6e4cec
commit
f5da3b745e
4 changed files with 45 additions and 37 deletions
|
|
@ -172,7 +172,10 @@ fn extract_txt_from_zip(path: &Path) -> Result<String, IdxError> {
|
|||
continue;
|
||||
}
|
||||
|
||||
let name = file.name().to_ascii_lowercase();
|
||||
// An undecodable entry name cannot be the TXT payload.
|
||||
let Ok(name) = file.name().map(|name| name.to_ascii_lowercase()) else {
|
||||
continue;
|
||||
};
|
||||
if !name.ends_with(".txt") {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue