1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

chore: address clippy warnings

This commit is contained in:
Rob Ede
2025-02-19 22:24:56 +00:00
parent bb18fd8f66
commit 34ab565683
5 changed files with 8 additions and 8 deletions

View File

@ -17,7 +17,7 @@ mod v1 {
ctx.head()
.headers()
.get("Accept-Version")
.map_or(false, |hv| hv.as_bytes() == b"1")
.is_some_and(|hv| hv.as_bytes() == b"1")
}
}
@ -37,7 +37,7 @@ mod v2 {
ctx.head()
.headers()
.get("Accept-Version")
.map_or(false, |hv| hv.as_bytes() == b"2")
.is_some_and(|hv| hv.as_bytes() == b"2")
}
}