From 179f4a7c86cb82470e7ae7c9bd9180967c721dd6 Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Thu, 24 Mar 2022 01:23:00 +0200 Subject: [PATCH] Turn Volume::new() into const --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index cbe0987..8ce383d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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,