Cleanup more lint.

Add script for building all configs with all lint as errors.
This commit is contained in:
2019-10-13 08:23:07 -07:00
parent 90c4e15ad1
commit fcc22b24cd
2 changed files with 6 additions and 1 deletions

View File

@@ -153,7 +153,7 @@ fn render_noise(noise_params: NoiseParams) -> image::GrayImage {
const SEED: [u8; 16] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
let rng: &mut XorShiftRng = &mut SeedableRng::from_seed(SEED);
let mut img = image::GrayImage::new(noise_params.width, noise_params.height);
let tex: NoiseTexture<Box<noise::NoiseSource>> = match noise_params.noise_source {
let tex: NoiseTexture<Box<dyn noise::NoiseSource>> = match noise_params.noise_source {
NoiseSource::Perlin => {
NoiseTexture::new(Box::new(Perlin::new(rng)), noise_params.noise_type)
}