Skip to content

Commit

Permalink
Merge pull request #1673 from husjon/fix-enums3-formatting
Browse files Browse the repository at this point in the history
Fixed formatting of `enums3` with rustfmt
  • Loading branch information
shadows-withal authored Sep 18, 2023
2 parents ef122c9 + 0ee9c5b commit 170aaab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions exercises/enums/enums3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct State {
color: (u8, u8, u8),
position: Point,
quit: bool,
message: String
message: String,
}

impl State {
Expand All @@ -32,7 +32,9 @@ impl State {
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) {
self.position = p;
Expand Down

0 comments on commit 170aaab

Please sign in to comment.