mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
rename helper methods
This commit is contained in:
@@ -166,7 +166,7 @@ impl PlanarYUVLuminanceSource {
|
||||
inverted: bool,
|
||||
) -> Result<Self, Exceptions> {
|
||||
if left + width > data_width || top + height > data_height {
|
||||
return Err(Exceptions::illegalArgument(
|
||||
return Err(Exceptions::illegalArgumentWith(
|
||||
"Crop rectangle does not fit within image data.",
|
||||
));
|
||||
}
|
||||
@@ -328,7 +328,7 @@ impl LuminanceSource for PlanarYUVLuminanceSource {
|
||||
self.invert,
|
||||
) {
|
||||
Ok(new) => Ok(Box::new(new)),
|
||||
Err(_err) => Err(Exceptions::unsupportedOperationEmpty()),
|
||||
Err(_err) => Err(Exceptions::unsupportedOperation),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user