mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
Implement clippy suggestions
This commit is contained in:
@@ -52,8 +52,8 @@ impl<'a> MultiDetector<'_> {
|
||||
let mut finder = MultiFinderPatternFinder::new(image, resultPointCallback);
|
||||
let infos = finder.findMulti(hints)?;
|
||||
|
||||
if infos.len() == 0 {
|
||||
return Err(Exceptions::NotFoundException("".to_owned()));
|
||||
if infos.is_empty() {
|
||||
return Err(Exceptions::NotFoundException(None));
|
||||
}
|
||||
|
||||
let mut result = Vec::new();
|
||||
|
||||
Reference in New Issue
Block a user