mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-25 14:57:32 -05:00
Merge pull request #1673 from husjon/fix-enums3-formatting
Fixed formatting of `enums3` with rustfmt
This commit is contained in:
commit
170aaabe9b
1 changed files with 4 additions and 2 deletions
|
@ -20,7 +20,7 @@ struct State {
|
|||
color: (u8, u8, u8),
|
||||
position: Point,
|
||||
quit: bool,
|
||||
message: String
|
||||
message: String,
|
||||
}
|
||||
|
||||
impl State {
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue