1
0
Fork 0

Get rid of Default implementations on ranges

These also don't make any sense anymore and will likely lead to more
problems than they solve.
This commit is contained in:
Robbert van der Helm 2022-05-01 17:40:53 +02:00
parent d6bdfd7391
commit 2026257561

View file

@ -31,18 +31,6 @@ pub enum IntRange {
Linear { min: i32, max: i32 },
}
impl Default for FloatRange {
fn default() -> Self {
Self::Linear { min: 0.0, max: 1.0 }
}
}
impl Default for IntRange {
fn default() -> Self {
Self::Linear { min: 0, max: 1 }
}
}
impl FloatRange {
/// Calculate a skew factor for [`FloatRange::Skewed`] and [`FloatRange::SymmetricalSkewed`].
/// Positive values make the end of the range wider while negative make the start of the range