1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02:00

MSRV 1.68 (#328)

This commit is contained in:
Rob Ede
2023-09-16 00:30:38 +01:00
committed by GitHub
parent 75386f4a1d
commit aaedb9c625
31 changed files with 245 additions and 235 deletions

View File

@ -102,7 +102,7 @@ impl FromRequest for BearerAuth {
let bearer = req
.app_data::<Config>()
.map(|config| config.0.clone())
.unwrap_or_else(Default::default);
.unwrap_or_default();
AuthenticationError::new(bearer)
}),

View File

@ -55,7 +55,7 @@ impl Scheme for Basic {
let mut parts = header.to_str()?.splitn(2, ' ');
match parts.next() {
Some(scheme) if scheme == "Basic" => (),
Some("Basic") => (),
_ => return Err(ParseError::MissingScheme),
}

View File

@ -50,7 +50,7 @@ impl Scheme for Bearer {
let mut parts = header.to_str()?.splitn(2, ' ');
match parts.next() {
Some(scheme) if scheme == "Bearer" => {}
Some("Bearer") => {}
_ => return Err(ParseError::MissingScheme),
}