mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 12:52:34 +00:00
Use thiserror for error handling with less boilerplate
This commit is contained in:
@@ -72,7 +72,7 @@ impl Writer for MultiFormatWriter {
|
||||
BarcodeFormat::DATA_MATRIX => Box::<DataMatrixWriter>::default(),
|
||||
BarcodeFormat::AZTEC => Box::<AztecWriter>::default(),
|
||||
_ => {
|
||||
return Err(Exceptions::illegalArgumentWith(format!(
|
||||
return Err(Exceptions::illegal_argument_with(format!(
|
||||
"No encoder available for format {format:?}"
|
||||
)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user