Skip to content

Commit 5bdd864

Browse files
committed
examples/codec_mode_histogram: cargo fmt (reflow weather-field expr)
Fixes the rustfmt --check CI failure on #229 — rustfmt 1.95.0 collapses the multi-line float expression to a single line. Cosmetic only. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MLBnPuScZy6w9di2QEjsXM
1 parent e98ed72 commit 5bdd864

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

examples/codec_mode_histogram.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ fn main() {
125125
let mut b = vec![0i64; N];
126126
for y in 0..H {
127127
for x in 0..W {
128-
let f = 480.0
129-
+ 400.0 * (x as f64 * 0.018).sin() * (y as f64 * 0.018).cos()
130-
+ 60.0 * (x as f64 * 0.09).sin();
128+
let f =
129+
480.0 + 400.0 * (x as f64 * 0.018).sin() * (y as f64 * 0.018).cos() + 60.0 * (x as f64 * 0.09).sin();
131130
b[y * W + x] = f.round().clamp(0.0, 1023.0) as i64;
132131
}
133132
}

0 commit comments

Comments
 (0)