Skip to content

Commit

Permalink
Turn Volume::new() into const
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Mar 23, 2022
1 parent 27846d4 commit 179f4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ pub struct Volume {
}

impl Volume {
pub fn new(min: Vec3, max: Vec3) -> Self {
pub const fn new(min: Vec3, max: Vec3) -> Self {
Self {
min,
max,
Expand Down

0 comments on commit 179f4a7

Please sign in to comment.