Skip to content

Commit

Permalink
Fix breakage from style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
¨Jeff committed Sep 12, 2023
1 parent 45b005e commit 56214f8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ff/src/fields/field_hashers/expander/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ impl DST {
let mut long = H::default();
long.update(&LONG_DST_PREFIX[..]);
long.update(&dst);
(long.finalize_fixed().as_ref()).try_into()
ArrayVec::try_from(long.finalize_fixed().as_ref()).unwrap()
} else {
dst.try_into()
};
DST(array.unwrap())
ArrayVec::try_from(dst).unwrap()
};
DST(array)
}

pub fn new_xof<H: ExtendableOutput + Default>(dst: &[u8], k: usize) -> DST {
Expand All @@ -40,11 +40,11 @@ impl DST {
let mut new_dst = [0u8; MAX_DST_LENGTH];
let new_dst = &mut new_dst[0..((2 * k + 7) >> 3)];
long.finalize_xof_into(new_dst);
new_dst.try_into()
ArrayVec::try_from(&*new_dst).unwrap()
} else {
dst.try_into()
ArrayVec::try_from(dst).unwrap()
};
DST(array.unwrap())
DST(array)
}

pub fn update<H: Update>(&self, h: &mut H) {
Expand Down

0 comments on commit 56214f8

Please sign in to comment.