We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5ef97d commit f8f1c76Copy full SHA for f8f1c76
1 file changed
crates/rustapi-extras/src/cache/mod.rs
@@ -147,7 +147,7 @@ impl CacheStore {
147
entry
148
.key()
149
.split_once(':')
150
- .map_or(false, |(_, uri)| uri.starts_with(prefix))
+ .is_some_and(|(_, uri)| uri.starts_with(prefix))
151
})
152
.map(|entry| entry.key().clone())
153
.collect();
@@ -345,7 +345,7 @@ fn generate_etag(body: &[u8]) -> String {
345
hash ^= byte as u64;
346
hash = hash.wrapping_mul(0x100000001b3);
347
}
348
- format!("\"{}\"", format!("{:016x}", hash))
+ format!("\"{:016x}\"", hash)
349
350
351
/// Build a cache key from method, URI, and vary headers
0 commit comments