Skip to content

Commit

Permalink
Clippy update
Browse files Browse the repository at this point in the history
  • Loading branch information
Razaekel committed Mar 25, 2020
1 parent 903198d commit 75c2247
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 15 deletions.
2 changes: 0 additions & 2 deletions src/gradient.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std;

#[inline(always)]
#[rustfmt::skip]
pub(crate) fn get2(index: usize) -> [f64; 2] {
Expand Down
1 change: 0 additions & 1 deletion src/noise_fns/generators/fractals/basicmulti.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::math;

use crate::noise_fns::{MultiFractal, NoiseFn, Perlin, Seedable};
use std;

/// Noise function that outputs heterogenous Multifractal noise.
///
Expand Down
1 change: 0 additions & 1 deletion src/noise_fns/generators/fractals/billow.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::math::{self, scale_shift};
use crate::noise_fns::{MultiFractal, NoiseFn, Perlin, Seedable};
use std;

/// Noise function that outputs "billowy" noise.
///
Expand Down
1 change: 0 additions & 1 deletion src/noise_fns/generators/fractals/fbm.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::math;

use crate::noise_fns::{MultiFractal, NoiseFn, Perlin, Seedable};
use std;

/// Noise function that outputs fBm (fractal Brownian motion) noise.
///
Expand Down
1 change: 0 additions & 1 deletion src/noise_fns/generators/fractals/hybridmulti.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::math;

use crate::noise_fns::{MultiFractal, NoiseFn, Perlin, Seedable};
use std;

/// Noise function that outputs hybrid Multifractal noise.
///
Expand Down
1 change: 0 additions & 1 deletion src/noise_fns/generators/fractals/ridgedmulti.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::math::{self, scale_shift};
use crate::noise_fns::{MultiFractal, NoiseFn, Perlin, Seedable};
use std;

/// Noise function that outputs ridged-multifractal noise.
///
Expand Down
1 change: 0 additions & 1 deletion src/noise_fns/generators/worley.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::{
noise_fns::{NoiseFn, Seedable},
permutationtable::PermutationTable,
};
use std;

/// Noise function that outputs Worley noise.
#[derive(Clone, Copy, Debug)]
Expand Down
1 change: 0 additions & 1 deletion src/noise_fns/modifiers/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use crate::{
math::{self, interpolate},
noise_fns::NoiseFn,
};
use std;

/// Noise function that maps the output value from the source function onto an
/// arbitrary function curve.
Expand Down
1 change: 0 additions & 1 deletion src/noise_fns/modifiers/terrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use crate::{
math::{clamp, interpolate},
noise_fns::NoiseFn,
};
use std;

/// Noise function that maps the output value from the source function onto a
/// terrace-forming curve.
Expand Down
1 change: 0 additions & 1 deletion src/utils/color_gradient.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::math;
use std;

pub type Color = [u8; 4];

Expand Down
2 changes: 0 additions & 2 deletions src/utils/noise_image.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use crate::utils::color_gradient::Color;
#[cfg(feature = "image")]
use image;
#[cfg(feature = "image")]
use std::{self, path::Path};

const RASTER_MAX_WIDTH: u16 = 32_767;
Expand Down
2 changes: 0 additions & 2 deletions src/utils/noise_map.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#[cfg(feature = "image")]
use crate::math;
#[cfg(feature = "image")]
use image;
#[cfg(feature = "image")]
use std::{self, path::Path};

const RASTER_MAX_WIDTH: u16 = 32_767;
Expand Down

0 comments on commit 75c2247

Please sign in to comment.