mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
remove .to_owned() calls on &str in exceptions
This commit is contained in:
@@ -93,9 +93,7 @@ impl<'a> MultiFinderPatternFinder<'_> {
|
||||
|
||||
if size < 3 {
|
||||
// Couldn't find enough finder patterns
|
||||
return Err(Exceptions::notFound(
|
||||
"Couldn't find enough finder patterns".to_owned(),
|
||||
));
|
||||
return Err(Exceptions::notFound("Couldn't find enough finder patterns"));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user