use a name matching rust conventions

This commit is contained in:
Corwin 2022-08-04 21:48:14 +01:00
parent 7735baecc9
commit 44fd7d0027

View file

@ -136,7 +136,7 @@ impl MovableWindow {
} }
} }
pub fn set_position_byte(&mut self, rect: Rect<u8>) -> &mut Self { pub fn set_position_u8(&mut self, rect: Rect<u8>) -> &mut Self {
self.rect = rect; self.rect = rect;
self self
@ -147,6 +147,6 @@ impl MovableWindow {
(rect.position.x as u8, rect.position.y as u8).into(), (rect.position.x as u8, rect.position.y as u8).into(),
(rect.size.x as u8, rect.size.y as u8).into(), (rect.size.x as u8, rect.size.y as u8).into(),
); );
self.set_position_byte(new_rect) self.set_position_u8(new_rect)
} }
} }