Removed Into for Rectangle<f32> from u32

This commit is contained in:
Bingus 2023-09-18 09:04:28 -07:00 committed by Héctor Ramón Jiménez
parent 781ef1f94c
commit 36e8521593
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 1 additions and 12 deletions

View file

@ -183,17 +183,6 @@ impl From<Rectangle<u32>> for Rectangle<f32> {
}
}
impl From<Rectangle<f32>> for Rectangle<u32> {
fn from(rectangle: Rectangle<f32>) -> Self {
Rectangle {
x: rectangle.x as u32,
y: rectangle.y as u32,
width: rectangle.width as u32,
height: rectangle.height as u32,
}
}
}
impl<T> std::ops::Add<Vector<T>> for Rectangle<T>
where
T: std::ops::Add<Output = T>,

View file

@ -335,7 +335,7 @@ impl Backend {
shader.primitive.render(
&self.pipeline_storage,
bounds.into(),
bounds.snap(),
target,
target_size,
encoder,