Cleanup more lint.
Add script for building all configs with all lint as errors.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user