clippy++
This commit is contained in:
@@ -54,15 +54,6 @@ impl Shader for ThinkingShader {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct GayBarberShader {}
|
||||
|
||||
impl Shader for GayBarberShader {
|
||||
fn draw(&self, coords: &VirtualCoordinates, frame: usize) -> RGB8 {
|
||||
Hsv::new_srgb((frame as u8).wrapping_add(coords.x).wrapping_add(coords.y), 255, sin8((frame % 128) as u8)).into_rgb8()
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Surface> IdleTask<T> {
|
||||
pub fn new<S: Surfaces<Surface = T>>(surfaces: &mut S) -> Self {
|
||||
IdleTask {
|
||||
@@ -123,7 +114,7 @@ impl TestShader {
|
||||
Self::SweepY => Self::SinX,
|
||||
Self::SinX => Self::SinY,
|
||||
Self::SinY => Self::Metaballs,
|
||||
Self::Metaballs => Self::RGB
|
||||
Self::Metaballs => Self::Red
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user