mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 12:25:02 +01:00
Fix some clippy warnings
This commit is contained in:
parent
c94beea85e
commit
ff6dcca482
2 changed files with 2 additions and 9 deletions
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue