fixed clippy errors

This commit is contained in:
Henry Schimke
2022-10-16 13:09:24 -05:00
parent c63dd67e4d
commit accf587bea
5 changed files with 19 additions and 19 deletions

View File

@@ -967,7 +967,7 @@ impl ReedSolomonEncoder {
));
}
let data_bytes = to_encode.len() - ec_bytes;
if data_bytes <= 0 {
if data_bytes == 0 {
return Err(Exceptions::IllegalArgumentException(
"No data bytes provided".to_owned(),
));