tidy bindings, closures and string building

This commit is contained in:
2026-09-21 01:31:16 +03:00
parent c7a4721e7d
commit 3f50fdd337
3 changed files with 14 additions and 10 deletions
+2 -2
View File
@@ -171,8 +171,8 @@ async fn fetch_sha256(client: &reqwest::Client, url: &str) -> Result<[u8; 32]> {
if line.len() < 64 {
return None;
}
let (hash, _file) = line.split_at(64);
let remainder = _file.trim_start();
let (hash, file) = line.split_at(64);
let remainder = file.trim_start();
// Must be followed by two spaces and a filename
if !remainder.starts_with(" ") {
return None;