Merge pull request #1673 from husjon/fix-enums3-formatting

Fixed formatting of `enums3` with rustfmt
This commit is contained in:
liv 2023-09-18 10:07:39 +02:00 committed by GitHub
commit 170aaabe9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;