mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 06:13:07 +00:00
clippy
This commit is contained in:
parent
99fb730aea
commit
9919562a64
@ -11,7 +11,7 @@ use crate::cpu::kernel::interpreter::run_with_kernel;
|
||||
/// Standard Sha2 implementation.
|
||||
fn sha2(input: Vec<u8>) -> U256 {
|
||||
let mut hasher = Sha256::new();
|
||||
hasher.update(input.clone());
|
||||
hasher.update(input);
|
||||
U256::from(&hasher.finalize()[..])
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user