From 546cc762d8083fd10a0d29a07b199a53296bb028 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Sun, 22 Nov 2015 18:56:53 +0100 Subject: [PATCH] Ran rustfmt --- examples/noise.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/noise.rs b/examples/noise.rs index a164c7a..ce7a1da 100644 --- a/examples/noise.rs +++ b/examples/noise.rs @@ -4,9 +4,9 @@ const WIDTH: usize = 1280; const HEIGHT: usize = 720; fn main() { - let mut noise; - let mut carry; - let mut seed = 0xbeefu32; + let mut noise; + let mut carry; + let mut seed = 0xbeefu32; let mut buffer: [u32; WIDTH * HEIGHT] = [0; WIDTH * HEIGHT]; @@ -15,17 +15,17 @@ fn main() { } while minifb::update(&buffer) { - for i in buffer.iter_mut() { - noise = seed; - noise >>= 3; - noise ^= seed; - carry = noise & 1; - noise >>= 1; - seed >>= 1; - seed |= carry << 30; - noise &= 0xFF; - *i = (noise << 16) | (noise << 8) | noise; - } + for i in buffer.iter_mut() { + noise = seed; + noise >>= 3; + noise ^= seed; + carry = noise & 1; + noise >>= 1; + seed >>= 1; + seed |= carry << 30; + noise &= 0xFF; + *i = (noise << 16) | (noise << 8) | noise; + } } minifb::close();