Cleanup more lint.

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

5
rtiow/build_all_features.sh Executable file
View File

@ -0,0 +1,5 @@
export RUSTFLAGS="-D warnings"
cargo watch -x 'build' \
-x 'build --features=prom' \
-x 'build --features=profile' \
-x 'build --features=prom,profile'

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)
}