Implement clippy suggestions

This commit is contained in:
Henry Schimke
2023-01-04 14:48:16 -06:00
parent c65eadf102
commit 48287631dd
196 changed files with 2465 additions and 2574 deletions

View File

@@ -31,7 +31,7 @@ use crate::Exceptions;
* @author Sean Owen
* @author alasdair@google.com (Alasdair Mackintosh)
*/
#[derive(OneDReader, EANReader)]
#[derive(OneDReader, EANReader, Default)]
pub struct EAN13Reader;
impl UPCEANReader for EAN13Reader {
fn getBarcodeFormat(&self) -> crate::BarcodeFormat {
@@ -154,12 +154,6 @@ impl EAN13Reader {
return Ok(());
}
}
return Err(Exceptions::NotFoundException("".to_owned()));
}
}
impl Default for EAN13Reader {
fn default() -> Self {
Self {}
Err(Exceptions::NotFoundException(None))
}
}