Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Feb 13, 2022
1 parent b9cdd05 commit d61c77c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/core/src/index/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ pub trait Index<'a> {
self.signature_refs().len()
}

fn is_empty(&self) -> bool {
self.len() == 0
}

/*
fn iter_signatures(&self) -> Self::SignatureIterator;
*/
Expand Down
2 changes: 1 addition & 1 deletion src/core/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ impl<'a> Storage for ZipStorage<'a> {

fn load(&self, path: &str) -> Result<Vec<u8>, Error> {
if let Some(archive) = &self.archive {
load_from_archive(&archive, path)
load_from_archive(archive, path)
} else {
//FIXME
let archive = piz::ZipArchive::new((&self.mapping.as_ref()).unwrap())
Expand Down

0 comments on commit d61c77c

Please sign in to comment.