Skip to content

Commit

Permalink
Merge pull request #103 from fmeringdal/fix/clippy
Browse files Browse the repository at this point in the history
Fix clippy lints
  • Loading branch information
fmeringdal authored Feb 4, 2024
2 parents afe74c6 + 3cf50a6 commit e0f34d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rrule/src/iter/pos_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ pub(crate) fn build_pos_list(

let timeset_len = u32::try_from(timeset.len())
.expect("timeset length is a maximum of 24 * 60 * 60 which is covered by u32");
let timeset_len_float = f64::try_from(timeset_len)
.expect("timeset length is a maximum of 24 * 60 * 60 which is covered by f64");
let timeset_len_float = f64::from(timeset_len);
let timeset_len_int = i32::try_from(timeset_len)
.expect("timeset length is a maximum of 24 * 60 * 60 which is covered by i32");
for pos in by_set_pos {
Expand Down

0 comments on commit e0f34d8

Please sign in to comment.