mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 20:32:34 +00:00
remove .to_owned() calls on &str in exceptions
This commit is contained in:
@@ -180,7 +180,7 @@ impl RGBLuminanceSource {
|
||||
) -> Result<Self, Exceptions> {
|
||||
if left + width > data_width || top + height > data_height {
|
||||
return Err(Exceptions::illegalArgument(
|
||||
"Crop rectangle does not fit within image data.".to_owned(),
|
||||
"Crop rectangle does not fit within image data.",
|
||||
));
|
||||
}
|
||||
Ok(Self {
|
||||
|
||||
Reference in New Issue
Block a user