File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ async fn auth(
116
116
next : Next ,
117
117
) -> Result < Response , StatusCode > {
118
118
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| {
120
120
auth. username ( ) == username && auth. password ( ) == password
121
121
} ) ;
122
122
Original file line number Diff line number Diff line change @@ -1357,9 +1357,9 @@ mod index_entry {
1357
1357
/// The current values are:
1358
1358
//
1359
1359
/// * 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.
1361
1361
/// * 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.
1363
1363
pub v : u32 ,
1364
1364
1365
1365
/// Features with new, extended syntax, such as namespaced
You can’t perform that action at this time.
0 commit comments