mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-28 05:12:34 +00:00
Update macro and cargo fmt
This commit is contained in:
@@ -74,7 +74,9 @@ impl ReedSolomonEncoder {
|
||||
|
||||
pub fn encode(&mut self, to_encode: &mut Vec<i32>, ec_bytes: usize) -> Result<()> {
|
||||
if ec_bytes == 0 {
|
||||
return Err(Exceptions::illegal_argument_with("No error correction bytes"));
|
||||
return Err(Exceptions::illegal_argument_with(
|
||||
"No error correction bytes",
|
||||
));
|
||||
}
|
||||
let data_bytes = to_encode.len() - ec_bytes;
|
||||
if data_bytes == 0 {
|
||||
|
||||
Reference in New Issue
Block a user