1
0
Fork 0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-05-12 01:06:08 +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
commit 170aaabe9b
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

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;