1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-06-29 00:41:42 +02:00

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

View File

@ -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;