remove .to_owned() calls on &str in exceptions

This commit is contained in:
Vukašin Stepanović
2023-02-15 11:03:27 +00:00
parent 722ce78fd0
commit 528ddea41c
47 changed files with 107 additions and 167 deletions

View File

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