Skip to content

Commit 90bd20f

Browse files
committed
satisfy typos job
1 parent 9e96f9b commit 90bd20f

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

sponge-cursor/tests/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ fn keccak_test() {
8080

8181
let expected_pos = (SHORT_DATA.len() + DATA.len()) % 136;
8282
for &chunk_size in CHUNK_SIZES {
83-
let mut state_cpy = state;
84-
let mut cursor_cpy = cursor.clone();
83+
let mut state_copy = state;
84+
let mut cursor_copy = cursor.clone();
8585

8686
for chunk in DATA.chunks(chunk_size) {
87-
cursor_cpy.absorb_u64_le(&mut state_cpy, f1600, chunk);
87+
cursor_copy.absorb_u64_le(&mut state_copy, f1600, chunk);
8888
}
89-
assert_eq!(state_cpy, STATE1);
90-
assert_eq!(cursor_cpy.pos(), expected_pos);
91-
assert_eq!(usize::from(cursor_cpy.raw_pos()), expected_pos);
89+
assert_eq!(state_copy, STATE1);
90+
assert_eq!(cursor_copy.pos(), expected_pos);
91+
assert_eq!(usize::from(cursor_copy.raw_pos()), expected_pos);
9292
}
9393

9494
{
@@ -111,10 +111,10 @@ fn keccak_test() {
111111
for &chunk_size in CHUNK_SIZES {
112112
let mut buf = [0u8; DATA_LEN];
113113
cursor = Default::default();
114-
let mut state_cpy = state;
114+
let mut state_copy = state;
115115

116116
for chunk in buf.chunks_mut(chunk_size) {
117-
cursor.squeeze_read_u64_le(&mut state_cpy, f1600, chunk);
117+
cursor.squeeze_read_u64_le(&mut state_copy, f1600, chunk);
118118
}
119119

120120
assert_eq!(&buf, SQUEEZE_DATA);
@@ -124,10 +124,10 @@ fn keccak_test() {
124124
for &chunk_size in CHUNK_SIZES {
125125
let mut buf = DATA;
126126
cursor = Default::default();
127-
let mut state_cpy = state;
127+
let mut state_copy = state;
128128

129129
for chunk in buf.chunks_mut(chunk_size) {
130-
cursor.squeeze_xor_u64_le(&mut state_cpy, f1600, chunk);
130+
cursor.squeeze_xor_u64_le(&mut state_copy, f1600, chunk);
131131
}
132132

133133
assert_eq!(buf, expected);

0 commit comments

Comments
 (0)