Skip to content

Commit 0181a72

Browse files
committed
Fix according to latest clippy
1 parent f59b6e9 commit 0181a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/ckb-sphincs-tools/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn char_to_u8(c: char) -> u8 {
7070
pub fn str_to_bytes(input: &str) -> Vec<u8> {
7171
let off = if input.contains("0x") { 2 } else { 0 };
7272
let input = input.as_bytes();
73-
assert!(input.len() % 2 == 0);
73+
assert!(input.len().is_multiple_of(2));
7474
let mut r = vec![0; (input.len() - off) / 2];
7575

7676
for i in 0..r.len() {

0 commit comments

Comments
 (0)