Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
svenstaro committed Feb 2, 2025
1 parent 371adcf commit 01ade04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ray/ray_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,15 +439,15 @@ mod bench {

/// Generate a random deterministic `Ray`.
fn random_ray(rng: &mut StdRng) -> TRay3 {
let a = tuple_to_point(&rng.gen::<TupleVec>());
let b = tuple_to_vector(&rng.gen::<TupleVec>());
let a = tuple_to_point(&rng.random::<TupleVec>());
let b = tuple_to_vector(&rng.random::<TupleVec>());
TRay3::new(a, b)
}

/// Generate a random deterministic `Aabb`.
fn random_aabb(rng: &mut StdRng) -> TAabb3 {
let a = tuple_to_point(&rng.gen::<TupleVec>());
let b = tuple_to_point(&rng.gen::<TupleVec>());
let a = tuple_to_point(&rng.random::<TupleVec>());
let b = tuple_to_point(&rng.random::<TupleVec>());

TAabb3::empty().grow(&a).grow(&b)
}
Expand Down

0 comments on commit 01ade04

Please sign in to comment.