Skip to content

Commit

Permalink
Fixed clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Rapious committed Sep 25, 2023
1 parent 860a29a commit 8a6ae33
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ fn two_spheres() -> ImageBuffer<Rgba<u8>, Vec<u8>> {
);

let mut world = World::empty();
let mut rng = thread_rng();

static EVEN: Texture = Texture::SolidColor(Vector3::new(0.2, 0.3, 0.1));
static ODD: Texture = Texture::SolidColor(Vector3::new(0.9, 0.9, 0.9));
Expand Down
1 change: 1 addition & 0 deletions src/aabb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use crate::ray::Ray;

/// Axis-Aligned Bounding Box
#[derive(Debug, Default, Clone)]
#[allow(clippy::upper_case_acronyms)]
pub struct AABB {
pub(crate) x: RealInterval,
pub(crate) y: RealInterval,
Expand Down
1 change: 1 addition & 0 deletions src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub struct Camera {
}

impl Camera {
#[allow(clippy::too_many_arguments)]
pub fn new(
samples_per_pixel: usize,
max_depth: usize,
Expand Down

0 comments on commit 8a6ae33

Please sign in to comment.