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:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user