windows: clippy's suggestions in the service and client (collapsible ifs, next_back)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7565e62571
commit
757bebbb1d
6 files changed
+20
-21
No files matched your search
@@ -20,10 +20,10 @@ pub async fn archive(src: &Source, routes: &[fetch::Route], cache: &Path) -> Res
|
||||
std::fs::create_dir_all(cache)?;
|
||||
let key = hex(src.url.as_bytes());
|
||||
let cached = cache.join(&key[..32]);
|
||||
if let Ok(data) = std::fs::read(&cached) {
|
||||
if src.sha256.as_ref().is_none_or(|want| hex(&data) == *want) {
|
||||
return Ok(data);
|
||||
}
|
||||
if let Ok(data) = std::fs::read(&cached)
|
||||
&& src.sha256.as_ref().is_none_or(|want| hex(&data) == *want)
|
||||
{
|
||||
return Ok(data);
|
||||
}
|
||||
let mut last = None;
|
||||
for route in routes {
|
||||
|
||||
Reference in new issue
Block a user