Skip to content

Commit b7eaf20

Browse files
authored
Merge pull request #32 from integer32llc/clippy
Maintenance
2 parents 1550f09 + c7490bf commit b7eaf20

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

Cargo.lock

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ lint_groups_priority = { level = "allow", priority = 1 } # Remove after 1.80. ht
2929

3030
[workspace.dependencies]
3131
argh = { version = "0.1.12", default-features = false }
32-
registry-conformance = { version = "0.5.2", registry = "registry-conformance" }
32+
registry-conformance = { version = "0.5.3", registry = "registry-conformance" }
3333
snafu = { version = "0.8.2", default-features = false, features = ["rust_1_65", "std"] }
3434
tokio = { version = "1.37.0", default-features = false, features = ["macros", "process", "rt-multi-thread"] }
3535

conformance/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ 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| {
120-
auth.username() == username && auth.password() == password
121-
});
119+
let creds_match = auth_header
120+
.as_ref()
121+
.is_some_and(|auth| auth.username() == username && auth.password() == password);
122122

123123
if !creds_match {
124124
return Err(StatusCode::UNAUTHORIZED);

src/main.rs

Lines changed: 2 additions & 2 deletions
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)