Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
cargo clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed May 10, 2023
1 parent e9c2d20 commit a793680
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ impl<V: Verifier, C: ContextObject> Executable<V, C> {
0
};
Ok(Self {
_verifier: PhantomData::default(),
_verifier: PhantomData,
elf_bytes,
ro_section: Section::Borrowed(0, 0..text_bytes.len()),
text_section_info: SectionInfo {
Expand Down Expand Up @@ -515,7 +515,7 @@ impl<V: Verifier, C: ContextObject> Executable<V, C> {
)?;

Ok(Self {
_verifier: PhantomData::default(),
_verifier: PhantomData,
elf_bytes,
ro_section,
text_section_info,
Expand Down
2 changes: 1 addition & 1 deletion src/static_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ impl<'a> Analysis<'a> {
};
}
if cfg_node.dominator_parent != dominator_parent {
let mut cfg_node = self.cfg_nodes.get_mut(b).unwrap();
let cfg_node = self.cfg_nodes.get_mut(b).unwrap();
cfg_node.dominator_parent = dominator_parent;
terminate = false;
}
Expand Down

0 comments on commit a793680

Please sign in to comment.