rename helper methods

This commit is contained in:
Vukašin Stepanović
2023-02-15 12:52:59 +00:00
parent bfcdb397ad
commit 935519ced5
133 changed files with 858 additions and 1044 deletions

View File

@@ -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.",
));
}