Skip to content

Commit

Permalink
style: run clippy
Browse files Browse the repository at this point in the history
Remove `clippy::default-constructed-unit-structs` warnings
  • Loading branch information
Hugal31 committed Aug 3, 2023
1 parent 5b60397 commit 39b0090
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/internals/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl<'a> SafeYrMemoryBlockIterator<'a> {
pub fn new(iterator: YR_MEMORY_BLOCK_ITERATOR) -> Self {
Self {
iterator,
_marker: PhantomData::default(),
_marker: PhantomData,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/internals/matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl<'a> From<&'a yara_sys::YR_MATCHES> for MatchIterator<'a> {
fn from(matches: &'a yara_sys::YR_MATCHES) -> MatchIterator<'a> {
MatchIterator {
head: matches.head,
_marker: marker::PhantomData::default(),
_marker: marker::PhantomData,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/internals/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl<'a> From<&'a yara_sys::YR_RULE> for YrStringIterator<'a> {
fn from(rule: &'a yara_sys::YR_RULE) -> YrStringIterator<'a> {
YrStringIterator {
head: rule.get_strings(),
_marker: marker::PhantomData::default(),
_marker: marker::PhantomData,
}
}
}
Expand Down

0 comments on commit 39b0090

Please sign in to comment.