mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
clippy: Fix warnings in components/net
(#31626)
* clippy: fix warnings in `components/net` * fix: review comments
This commit is contained in:
parent
5ea0531775
commit
63527f56ca
8 changed files with 54 additions and 53 deletions
|
@ -134,10 +134,10 @@ pub struct HttpCache {
|
|||
|
||||
/// Determine if a response is cacheable by default <https://tools.ietf.org/html/rfc7231#section-6.1>
|
||||
fn is_cacheable_by_default(status_code: u16) -> bool {
|
||||
match status_code {
|
||||
200 | 203 | 204 | 206 | 300 | 301 | 404 | 405 | 410 | 414 | 501 => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(
|
||||
status_code,
|
||||
200 | 203 | 204 | 206 | 300 | 301 | 404 | 405 | 410 | 414 | 501
|
||||
)
|
||||
}
|
||||
|
||||
/// Determine if a given response is cacheable.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue