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:
@@ -96,7 +96,7 @@ impl LuminanceSource for Luma8LuminanceSource {
|
||||
|
||||
fn rotateCounterClockwise45(&self) -> Result<Box<dyn LuminanceSource>, crate::Exceptions> {
|
||||
Err(crate::Exceptions::unsupportedOperation(
|
||||
"This luminance source does not support rotation by 45 degrees.".to_owned(),
|
||||
"This luminance source does not support rotation by 45 degrees.",
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user