Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
06chaynes committed Jan 31, 2025
1 parent 92642c7 commit 4143052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http-cache/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl HttpResponse {
/// Checks if the Cache-Control header contains the must-revalidate directive
#[must_use]
pub fn must_revalidate(&self) -> bool {
self.headers.get(CACHE_CONTROL.as_str()).map_or(false, |val| {
self.headers.get(CACHE_CONTROL.as_str()).is_some_and(|val| {
val.as_str().to_lowercase().contains("must-revalidate")
})
}
Expand Down

0 comments on commit 4143052

Please sign in to comment.