Skip to content

Commit

Permalink
Run clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Marta Mularczyk committed Mar 3, 2025
1 parent 5224ee3 commit 33d8c72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mls-rs-codec/src/varint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl MlsDecode for VarInt {
.ok_or(Error::InvalidVarIntPrefix(prefix))?;

let n = (1..count).try_fold(u32::from(first & 0x3f), |n, _| {
u8::mls_decode(reader).map(|b| n << 8 | u32::from(b))
u8::mls_decode(reader).map(|b| (n << 8) | u32::from(b))
})?;

let n = VarInt(n);
Expand Down
2 changes: 1 addition & 1 deletion mls-rs-crypto-openssl/src/ec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ pub fn private_key_ecdh(
) -> Result<Vec<u8>, ErrorStack> {
let mut ecdh_derive = Deriver::new(private_key)?;
ecdh_derive.set_peer(remote_public)?;
ecdh_derive.derive_to_vec().map_err(Into::into)
ecdh_derive.derive_to_vec()
}

pub fn curve_from_nid(nid: Nid) -> Option<Curve> {
Expand Down

0 comments on commit 33d8c72

Please sign in to comment.