Skip to content

Commit

Permalink
0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimryndin committed May 21, 2024
1 parent 3b8c0a4 commit 9690ab7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/google/datavalue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,7 @@ impl From<Datarow> for RuleApplicant {
Percent(p) | HeatmapPercent(p) => Number(p / 100.0),
Datetime(d) => Number(convert_datetime_to_spreadsheet_double(d)),
Bool(b) => Bool(b),
Size(s) => Integer(u32::try_from(s).expect(
"assert: rule cannot contain large (more than u32::MAX) integers",
)),
Size(s) => Number(s as f64), // Rounding errors are acceptable for Size datavalues
NotAvailable => NotAvailable,
};
(k, v)
Expand Down

0 comments on commit 9690ab7

Please sign in to comment.