Skip to content

Commit 11e87e0

Browse files
authored
remove redundant variable in compact_size encoding
1 parent e5260ae commit 11e87e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internals/src/compact_size.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ pub fn encode(value: impl ToU64) -> ArrayVec<u8, MAX_ENCODING_SIZE> {
6969
res.extend_from_slice(&v.to_le_bytes());
7070
}
7171
_ => {
72-
let v = value;
7372
res.push(0xFF);
74-
res.extend_from_slice(&v.to_le_bytes());
73+
res.extend_from_slice(&value.to_le_bytes());
7574
}
7675
}
7776
res

0 commit comments

Comments
 (0)