Skip to content

Commit

Permalink
use default range syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
afternoon2 committed Jan 7, 2025
1 parent 0cd6ca6 commit a199c2b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/whiskers/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,7 @@ impl<'a> Context<'a> {

/// Helper function to return random angle
pub fn rng_angle(&mut self) -> Angle {
let deg = self.rng_range(Range {
start: 0.0,
end: 360.0,
});
Angle::from_deg(deg)
Angle::from_deg(self.rng_range(0.0..360.0))
}

/// Helper function to display an inspect parameter in the inspect variables UI
Expand Down

0 comments on commit a199c2b

Please sign in to comment.