Skip to content

Commit

Permalink
Merge pull request #5 from gardum-game/const-new
Browse files Browse the repository at this point in the history
Turn Volume::new() into const
  • Loading branch information
cryscan committed Mar 25, 2022
2 parents a2ad0d7 + 179f4a7 commit b003e63
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 @@ -212,7 +212,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 b003e63

Please sign in to comment.