Skip to content

Commit 170aaab

Browse files
authored
Merge pull request #1673 from husjon/fix-enums3-formatting
Fixed formatting of `enums3` with rustfmt
2 parents ef122c9 + 0ee9c5b commit 170aaab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

exercises/enums/enums3.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct State {
2020
color: (u8, u8, u8),
2121
position: Point,
2222
quit: bool,
23-
message: String
23+
message: String,
2424
}
2525

2626
impl State {
@@ -32,7 +32,9 @@ impl State {
3232
self.quit = true;
3333
}
3434

35-
fn echo(&mut self, s: String) { self.message = s }
35+
fn echo(&mut self, s: String) {
36+
self.message = s
37+
}
3638

3739
fn move_position(&mut self, p: Point) {
3840
self.position = p;

0 commit comments

Comments
 (0)