We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9cac4c commit 38f067bCopy full SHA for 38f067b
runtime/src/keccak/riscv32/mod.rs
@@ -182,6 +182,7 @@ enum Mode {
182
Squeezing,
183
}
184
185
+#[derive(Clone)]
186
struct KeccakState<P> {
187
buffer: Buffer,
188
offset: usize,
@@ -191,19 +192,6 @@ struct KeccakState<P> {
191
192
permutation: core::marker::PhantomData<P>,
193
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
-
207
impl<P: Permutation> KeccakState<P> {
208
fn new(rate: usize, delim: u8) -> Self {
209
assert!(rate != 0, "rate cannot be equal 0");
0 commit comments