Fixed formatting with rust-analyzer

This commit is contained in:
Jon Erling Hustadnes 2023-09-13 20:26:47 +02:00
parent 51c8da06b0
commit 0ee9c5b776

View File

@ -20,7 +20,7 @@ struct State {
color: (u8, u8, u8), color: (u8, u8, u8),
position: Point, position: Point,
quit: bool, quit: bool,
message: String message: String,
} }
impl State { impl State {
@ -32,7 +32,9 @@ impl State {
self.quit = true; self.quit = true;
} }
fn echo(&mut self, s: String) { self.message = s } fn echo(&mut self, s: String) {
self.message = s
}
fn move_position(&mut self, p: Point) { fn move_position(&mut self, p: Point) {
self.position = p; self.position = p;