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 authored Mar 25, 2022
2 parents e8c0b82 + 0766bc2 commit 168380a
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 168380a

Please sign in to comment.