diff --git a/src/stats/univariate/outliers/tukey.rs b/src/stats/univariate/outliers/tukey.rs index 70713ac57..12ed304bd 100644 --- a/src/stats/univariate/outliers/tukey.rs +++ b/src/stats/univariate/outliers/tukey.rs @@ -239,7 +239,7 @@ impl Label { /// Checks if the data point is labeled as an outlier pub fn is_outlier(&self) -> bool { - matches!(*self, NotAnOutlier) + !matches!(*self, NotAnOutlier) } /// Checks if the data point is labeled as a "severe" outlier