Skip to content

Commit

Permalink
Fix nightly clippy warning (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
mulmarta authored Feb 28, 2024
1 parent 7d8c898 commit 3efaea2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mls-rs/src/tree_kem/tree_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ impl TreeKemPublic {
pub async fn tree_hash<P: CipherSuiteProvider>(
&mut self,
cipher_suite_provider: &P,
) -> Result<Vec<u8>, MlsError>
where
P: CipherSuiteProvider,
{
) -> Result<Vec<u8>, MlsError> {
self.initialize_hashes(cipher_suite_provider).await?;
let root = self.total_leaf_count().root();
Ok(self.tree_hashes.current[root as usize].to_vec())
Expand All @@ -95,10 +92,7 @@ impl TreeKemPublic {
&mut self,
updated_leaves: &[LeafIndex],
cipher_suite_provider: &P,
) -> Result<(), MlsError>
where
P: CipherSuiteProvider,
{
) -> Result<(), MlsError> {
let num_leaves = self.total_leaf_count();

let trailing_blanks = (0..num_leaves)
Expand Down

0 comments on commit 3efaea2

Please sign in to comment.