mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 12:52:34 +00:00
rename helper methods
This commit is contained in:
@@ -127,7 +127,7 @@ impl LuminanceSource for RGBLuminanceSource {
|
||||
height,
|
||||
) {
|
||||
Ok(crop) => Ok(Box::new(crop)),
|
||||
Err(_error) => Err(Exceptions::unsupportedOperationEmpty()),
|
||||
Err(_error) => Err(Exceptions::unsupportedOperation),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ impl RGBLuminanceSource {
|
||||
height: usize,
|
||||
) -> 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.",
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user