Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
Signed-off-by: Eugene Koira <[email protected]>
  • Loading branch information
eugkoira committed Apr 12, 2024
1 parent 7eef004 commit d7dc37c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utils/eif_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ impl EifReader {

// Parse issuer into a BTreeMap
let mut issuer_name = BTreeMap::new();
for (_, e) in cert.issuer_name().entries().enumerate() {
for e in cert.issuer_name().entries() {
issuer_name.insert(
e.object().to_string(),
format!("{:?}", e.data()).replace(&['\"'][..], ""),
Expand Down
4 changes: 2 additions & 2 deletions src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ impl<T: Digest + Debug + Write + Clone> EifBuilder<T> {
}

fn kernel_size(&self) -> u64 {
self.kernel.metadata().unwrap().len() as u64
self.kernel.metadata().unwrap().len()
}

fn cmdline_offset(&self) -> u64 {
Expand All @@ -322,7 +322,7 @@ impl<T: Digest + Debug + Write + Clone> EifBuilder<T> {
}

fn ramdisk_size(&self, ramdisk: &File) -> u64 {
ramdisk.metadata().unwrap().len() as u64
ramdisk.metadata().unwrap().len()
}

fn signature_offset(&self) -> u64 {
Expand Down

0 comments on commit d7dc37c

Please sign in to comment.