summaryrefslogtreecommitdiff
path: root/src/interval.rs
diff options
context:
space:
mode:
authorRosyid Haryadi <rosyid_haryadi@protonmail.com>2025-03-03 23:03:47 +0700
committerRosyid Haryadi <rosyid_haryadi@protonmail.com>2025-03-03 23:03:47 +0700
commit210259c586ba950392bb5ae413d050da2f9bb430 (patch)
treef6daba9a3eebced91ba2023da43dfa8f33b59cb9 /src/interval.rs
parenta3dc82c5da764051a27c4bc8e3dcdd0cbf265be0 (diff)
chore clean up compiler warnings
Diffstat (limited to 'src/interval.rs')
-rw-r--r--src/interval.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interval.rs b/src/interval.rs
index 5086ab2..21c5f6e 100644
--- a/src/interval.rs
+++ b/src/interval.rs
@@ -3,6 +3,7 @@ pub struct Interval {
pub max: f32,
}
+#[allow(unused)]
impl Interval {
pub fn new(min: f32, max: f32) -> Self {
Self { min, max }
@@ -36,11 +37,13 @@ impl Default for Interval {
}
}
+#[allow(unused)]
pub const INTERVAL_EMPTY: Interval = Interval {
min: f32::INFINITY,
max: f32::NEG_INFINITY
};
+#[allow(unused)]
pub const INTERVAL_UNIVERSE: Interval = Interval {
min: f32::NEG_INFINITY,
max: f32::INFINITY