You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
ci: Update clippy to 1.66 and fix new warnings
This commit is contained in:
@ -333,9 +333,9 @@ impl<'a, T: ?Sized> Equality<'a, T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, T1, T2: ?Sized> Validator<T1> for Equality<'a, T2>
|
||||
impl<'a, T1, T2> Validator<T1> for Equality<'a, T2>
|
||||
where
|
||||
T2: PartialEq<T1>,
|
||||
T2: PartialEq<T1> + ?Sized,
|
||||
{
|
||||
type Error = EqualityError;
|
||||
fn validate(&self, value: &T1) -> Result<(), Self::Error> {
|
||||
|
@ -331,7 +331,7 @@ impl<T> Jwt<'static, T> {
|
||||
let payload_ = serde_json::to_vec(&payload).map_err(JwtSignatureError::encode_payload)?;
|
||||
let payload_ = Base64UrlUnpadded::encode_string(&payload_);
|
||||
|
||||
let mut inner = format!("{}.{}", header_, payload_);
|
||||
let mut inner = format!("{header_}.{payload_}");
|
||||
|
||||
let first_dot = header_.len();
|
||||
let second_dot = inner.len();
|
||||
|
Reference in New Issue
Block a user