Fix clippy lints

This commit is contained in:
crumblingstatue 2023-04-15 19:27:07 +02:00
parent 45801205dc
commit 5ed33b785f
2 changed files with 3 additions and 4 deletions

View file

@ -92,7 +92,7 @@ pub struct IntRect {
pub h: i32,
}
impl IntRect {
pub(crate) fn to_sf(&self) -> sfml::graphics::Rect<i32> {
pub(crate) fn to_sf(self) -> sfml::graphics::Rect<i32> {
sfml::graphics::Rect::<i32> {
left: self.x,
top: self.y,