clippy++
This commit is contained in:
@ -118,11 +118,11 @@ impl<Space: CoordinateSpace> Rectangle<Space> {
|
||||
}
|
||||
|
||||
pub fn width(&self) -> Space::Data {
|
||||
self.bottom_right.x.clone() - self.top_left.x.clone()
|
||||
self.bottom_right.x - self.top_left.x
|
||||
}
|
||||
|
||||
pub fn height(&self) -> Space::Data {
|
||||
self.bottom_right.y.clone() - self.top_left.y.clone()
|
||||
self.bottom_right.y - self.top_left.y
|
||||
}
|
||||
|
||||
pub const fn left(&self) -> Space::Data {
|
||||
|
Reference in New Issue
Block a user