This commit is contained in:
Eugene Pankov 2022-12-14 22:10:35 +01:00
parent 94c5faf493
commit 1d34e5e4e2
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4
3 changed files with 4 additions and 6 deletions

View file

@ -209,8 +209,8 @@ impl DetailApi {
}
}
fn process_credentials(credentials: &Vec<UserAuthCredential>) -> Vec<UserAuthCredential> {
let mut credentials = credentials.clone();
fn process_credentials(credentials: &[UserAuthCredential]) -> Vec<UserAuthCredential> {
let mut credentials: Vec<UserAuthCredential> = credentials.into();
for credential in credentials.iter_mut() {
if let UserAuthCredential::Password(ref mut c) = credential {
if parse_hash(c.hash.expose_secret()).is_err() {

View file

@ -447,10 +447,7 @@ async fn proxy_ws_inner(
tungstenite::Message::Close(data) => {
server_sink
.send(Message::Close(data.map(|data| {
(
CloseCode::from(data.code),
data.reason.into_owned(),
)
(CloseCode::from(data.code), data.reason.into_owned())
})))
.await?;
}

View file

@ -120,6 +120,7 @@ impl SsoInternalProviderConfig {
let mut header = jsonwebtoken::Header::new(jsonwebtoken::Algorithm::ES256);
header.kid = Some(key_id.into());
#[allow(clippy::unwrap_used)]
ClientSecret::new(jsonwebtoken::encode(
&header,
&AppleIDClaims {