tidy bindings, closures and string building
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user