Skip to content

Commit 2ca0038

Browse files
committed
Address Clippy lints
1 parent 1550f09 commit 2ca0038

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

conformance/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async fn auth(
116116
next: Next,
117117
) -> Result<Response, StatusCode> {
118118
if let Some((username, password)) = webserver_basic_auth {
119-
let creds_match = auth_header.as_ref().map_or(false, |auth| {
119+
let creds_match = auth_header.as_ref().is_some_and(|auth| {
120120
auth.username() == username && auth.password() == password
121121
});
122122

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1357,9 +1357,9 @@ mod index_entry {
13571357
/// The current values are:
13581358
//
13591359
/// * 1: The schema as documented here, not including newer additions.
1360-
/// This is honored in Rust version 1.51 and newer.
1360+
/// This is honored in Rust version 1.51 and newer.
13611361
/// * 2: The addition of the `features2` field.
1362-
/// This is honored in Rust version 1.60 and newer.
1362+
/// This is honored in Rust version 1.60 and newer.
13631363
pub v: u32,
13641364

13651365
/// Features with new, extended syntax, such as namespaced

0 commit comments

Comments
 (0)