Skip to content

Commit

Permalink
Remove unnecessary crate::hues::
Browse files Browse the repository at this point in the history
  • Loading branch information
okaneco committed Apr 1, 2020
1 parent 4ba7494 commit 27104a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion palette/src/hsl.rs
Expand Up @@ -672,7 +672,7 @@ where
{
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Hsl<S, T> {
crate::random_sampling::sample_hsl(
rng.gen::<crate::hues::RgbHue<T>>(),
rng.gen::<RgbHue<T>>(),
rng.gen(),
rng.gen(),
)
Expand Down
2 changes: 1 addition & 1 deletion palette/src/hsv.rs
Expand Up @@ -685,7 +685,7 @@ where
{
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Hsv<S, T> {
crate::random_sampling::sample_hsv(
rng.gen::<crate::hues::RgbHue<T>>(),
rng.gen::<RgbHue<T>>(),
rng.gen(),
rng.gen(),
)
Expand Down
2 changes: 1 addition & 1 deletion palette/src/lch.rs
Expand Up @@ -578,7 +578,7 @@ where
Lch {
l: rng.gen(),
chroma: crate::Float::sqrt(rng.gen()) * from_f64(128.0),
hue: rng.gen::<crate::hues::LabHue<T>>(),
hue: rng.gen::<LabHue<T>>(),
white_point: PhantomData,
}
}
Expand Down

0 comments on commit 27104a0

Please sign in to comment.