Merge pull request #1673 from husjon/fix-enums3-formatting

Fixed formatting of `enums3` with rustfmt
pull/1682/head
liv 9 months ago committed by GitHub
commit 170aaabe9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save