mirror of
https://github.com/warp-tech/warpgate.git
synced 2024-09-20 06:46:17 +08:00
lint
This commit is contained in:
parent
94c5faf493
commit
1d34e5e4e2
|
@ -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() {
|
||||
|
|
|
@ -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?;
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue