Skip to content

Commit

Permalink
Add clippy suppressions
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Jul 7, 2023
1 parent 71d0649 commit c3dd66c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/fixed_decimal/tests/rounding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use writeable::Writeable;
#[test]
pub fn test_ecma402_table() {
// Source: <https://tc39.es/ecma402/#table-intl-rounding-modes>
#[allow(clippy::type_complexity)] // best way to make it render like a table
let cases: [(
&'static str,
fn(&mut FixedDecimal, i16),
Expand Down Expand Up @@ -314,6 +315,7 @@ pub fn extra_rounding_mode_cases() {
],
},
];
#[allow(clippy::type_complexity)] // most compact representation in code
let rounding_modes: [(&'static str, fn(&mut FixedDecimal, i16)); 9] = [
("ceil", FixedDecimal::ceil),
("floor", FixedDecimal::floor),
Expand Down

0 comments on commit c3dd66c

Please sign in to comment.