File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments