Fix some clippy warnings

This commit is contained in:
crumblingstatue 2023-04-04 17:19:16 +02:00
parent c94beea85e
commit ff6dcca482
2 changed files with 2 additions and 9 deletions

View file

@ -30,7 +30,7 @@ pub struct ScreenPos {
pub type ScreenPosScalar = i16;
impl ScreenPos {
pub fn to_sf_vec(&self) -> Vector2f {
pub fn to_sf_vec(self) -> Vector2f {
Vector2f::new(self.x.into(), self.y.into())
}
}