Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
x-hgg-x committed Oct 6, 2024
1 parent 1bfe3b9 commit 8da8af7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/datetime/find.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl DateTimeList for FoundDateTimeList {
}
}

impl<'a> DateTimeList for FoundDateTimeListRefMut<'a> {
impl DateTimeList for FoundDateTimeListRefMut<'_> {
fn push(&mut self, found_date_time: FoundDateTimeKind) {
if let Some(x) = self.buf.get_mut(self.current_index) {
*x = Some(found_date_time);
Expand Down
4 changes: 2 additions & 2 deletions src/parse/tz_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ trait ParseTime {
fn parse_time(&self, data: &Self::TimeData) -> i64;
}

impl<'a> ParseTime for DataBlocks<'a, 4> {
impl ParseTime for DataBlocks<'_, 4> {
type TimeData = [u8; 4];

fn parse_time(&self, data: &Self::TimeData) -> i64 {
i32::from_be_bytes(*data).into()
}
}

impl<'a> ParseTime for DataBlocks<'a, 8> {
impl ParseTime for DataBlocks<'_, 8> {
type TimeData = [u8; 8];

fn parse_time(&self, data: &Self::TimeData) -> i64 {
Expand Down

0 comments on commit 8da8af7

Please sign in to comment.