Skip to content

Commit f8f1c76

Browse files
committed
Update mod.rs
1 parent d5ef97d commit f8f1c76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/rustapi-extras/src/cache

crates/rustapi-extras/src/cache/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl CacheStore {
147147
entry
148148
.key()
149149
.split_once(':')
150-
.map_or(false, |(_, uri)| uri.starts_with(prefix))
150+
.is_some_and(|(_, uri)| uri.starts_with(prefix))
151151
})
152152
.map(|entry| entry.key().clone())
153153
.collect();
@@ -345,7 +345,7 @@ fn generate_etag(body: &[u8]) -> String {
345345
hash ^= byte as u64;
346346
hash = hash.wrapping_mul(0x100000001b3);
347347
}
348-
format!("\"{}\"", format!("{:016x}", hash))
348+
format!("\"{:016x}\"", hash)
349349
}
350350

351351
/// Build a cache key from method, URI, and vary headers

0 commit comments

Comments
 (0)