clippy: re-enable semicolon_if_nothing_returned

This commit is contained in:
Daniel Hofstetter 2025-09-30 09:36:41 +02:00
parent acca436d6f
commit 0db870399c
3 changed files with 2 additions and 3 deletions

View file

@ -697,7 +697,6 @@ bool_to_int_with_if = "allow"
needless_raw_string_hashes = "allow"
unreadable_literal = "allow"
unnested_or_patterns = "allow"
semicolon_if_nothing_returned = "allow"
implicit_hasher = "allow"
struct_field_names = "allow"
doc_link_with_quotes = "allow"

View file

@ -1645,7 +1645,7 @@ mod tests {
for (filename, result, prefix, expected) in cases {
let mut buffer: Vec<u8> = vec![];
print_file_report(&mut buffer, filename, *result, prefix, opts.verbose);
assert_eq!(&buffer, expected)
assert_eq!(&buffer, expected);
}
}
}

View file

@ -62,7 +62,7 @@ pub fn fast_inc(val: &mut [u8], start: &mut usize, end: usize, inc: &[u8]) {
return;
}
fast_inc_one(val, start, pos)
fast_inc_one(val, start, pos);
}
/// Fast increment by one function, operating on ASCII strings.