diff --git a/src/interval.rs b/src/interval.rs index f94a290..5df0d2d 100644 --- a/src/interval.rs +++ b/src/interval.rs @@ -60,7 +60,6 @@ impl Interval where T: Copy, T: std::cmp::PartialOrd, - T: std::ops::Sub, { /// Verify whether self contains the specified interval /// @@ -464,7 +463,10 @@ where /// # Ok(()) /// # } /// ``` - pub fn width(&self) -> Option<::Output> { + pub fn width(&self) -> Option<::Output> + where + T: std::ops::Sub, + { let self_left_bound = self.to_left_bound(); let self_right_bound = self.to_right_bound();