Setup rustfmt for everything and address cargo clippy.

This commit is contained in:
2022-06-24 15:14:44 -07:00
parent 5e7139f0ba
commit 1ca903c64b
16 changed files with 41 additions and 44 deletions

View File

@@ -35,7 +35,7 @@ fn perlin_generate_perm<R>(rng: &mut R) -> Vec<usize>
where
R: Rng,
{
let mut p: Vec<usize> = (0..256).map(|i| i).collect();
let mut p: Vec<usize> = (0..256).collect();
p.shuffle(rng);
p
}