Skip to content

Commit 38f067b

Browse files
authored
Update mod.rs
1 parent e9cac4c commit 38f067b

File tree

1 file changed

+1
-13
lines changed
  • runtime/src/keccak/riscv32

1 file changed

+1
-13
lines changed

runtime/src/keccak/riscv32/mod.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ enum Mode {
182182
Squeezing,
183183
}
184184

185+
#[derive(Clone)]
185186
struct KeccakState<P> {
186187
buffer: Buffer,
187188
offset: usize,
@@ -191,19 +192,6 @@ struct KeccakState<P> {
191192
permutation: core::marker::PhantomData<P>,
192193
}
193194

194-
impl<P> Clone for KeccakState<P> {
195-
fn clone(&self) -> Self {
196-
KeccakState {
197-
buffer: self.buffer.clone(),
198-
offset: self.offset,
199-
rate: self.rate,
200-
delim: self.delim,
201-
mode: self.mode,
202-
permutation: core::marker::PhantomData,
203-
}
204-
}
205-
}
206-
207195
impl<P: Permutation> KeccakState<P> {
208196
fn new(rate: usize, delim: u8) -> Self {
209197
assert!(rate != 0, "rate cannot be equal 0");

0 commit comments

Comments
 (0)