mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
cargo clippy --fix
This commit is contained in:
@@ -67,15 +67,13 @@ impl Writer for DataMatrixWriter {
|
||||
|
||||
if format != &BarcodeFormat::DATA_MATRIX {
|
||||
return Err(Exceptions::IllegalArgumentException(Some(format!(
|
||||
"Can only encode DATA_MATRIX, but got {:?}",
|
||||
format
|
||||
"Can only encode DATA_MATRIX, but got {format:?}"
|
||||
))));
|
||||
}
|
||||
|
||||
if width < 0 || height < 0 {
|
||||
return Err(Exceptions::IllegalArgumentException(Some(format!(
|
||||
"Requested dimensions can't be negative: {}x{}",
|
||||
width, height
|
||||
"Requested dimensions can't be negative: {width}x{height}"
|
||||
))));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user