Skip to content

Commit a3ed028

Browse files
NeutroniSiegeLord
authored andcommitted
cargo test warning fix
1 parent 6eea4ad commit a3ed028

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gnuplot/examples/variable_color.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ fn example(c: Common)
3737
let d5 = extract_col(4);
3838
let d6 = extract_col(5);
3939
let row_index: Vec<_> = (1..=d1.len() as u8).collect();
40-
let by3 = |x| (((x % 3.0) + 1.0) / 6.0);
41-
let by4 = |x| (((x % 4.0) + 1.0) / 7.0);
40+
let by3 = |x| ((x % 3.0) + 1.0) / 6.0;
41+
let by4 = |x| ((x % 4.0) + 1.0) / 7.0;
4242

4343
let argb_formula = |x: &f64| {
4444
let a = 255.0 - 255.0 * (x - 5.5).abs() / 5.5;

0 commit comments

Comments
 (0)