Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ lint_groups_priority = { level = "allow", priority = 1 } # Remove after 1.80. ht

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

Expand Down
6 changes: 3 additions & 3 deletions conformance/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ async fn auth(
next: Next,
) -> Result<Response, StatusCode> {
if let Some((username, password)) = webserver_basic_auth {
let creds_match = auth_header.as_ref().map_or(false, |auth| {
auth.username() == username && auth.password() == password
});
let creds_match = auth_header
.as_ref()
.is_some_and(|auth| auth.username() == username && auth.password() == password);

if !creds_match {
return Err(StatusCode::UNAUTHORIZED);
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1357,9 +1357,9 @@ mod index_entry {
/// The current values are:
//
/// * 1: The schema as documented here, not including newer additions.
/// This is honored in Rust version 1.51 and newer.
/// This is honored in Rust version 1.51 and newer.
/// * 2: The addition of the `features2` field.
/// This is honored in Rust version 1.60 and newer.
/// This is honored in Rust version 1.60 and newer.
pub v: u32,

/// Features with new, extended syntax, such as namespaced
Expand Down
Loading