Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeringdal committed Feb 4, 2024
1 parent afe74c6 commit 3cf50a6
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 3cf50a6

Please sign in to comment.