diff options
| author | bors <bors@rust-lang.org> | 2019-06-23 10:25:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-06-23 10:25:48 +0000 |
| commit | 5f16469807147a2b4bd2e7cb072e7c3f0e96703f (patch) | |
| tree | 59bb9dccc31695a74f8c8b316d519e3c0b3f9718 /exercises/modules/modules2.rs | |
| parent | 752bc27e2bf166743be95508fefa9a15b247570b (diff) | |
| parent | eb13c2b6afd4ae22370698561478e27c8633a918 (diff) | |
Auto merge of #171 - miller-time:rustfmt-exercises, r=komaeda
chore: Clean up some formatting in exercises
I noticed some formatting that isn't consistent with the `rustfmt` style and tried my best to run it on the files in the exercises directory (which does fail for files that can't compile!), which just caught some minor whitespace things here and there.
Note: also can't just apply `rustfmt` blindly because of the blank lines that lead to the hint comments
Diffstat (limited to 'exercises/modules/modules2.rs')
| -rw-r--r-- | exercises/modules/modules2.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/exercises/modules/modules2.rs b/exercises/modules/modules2.rs index d5946e5..3cfa36d 100644 --- a/exercises/modules/modules2.rs +++ b/exercises/modules/modules2.rs @@ -1,7 +1,7 @@ // modules2.rs // Make me compile! Scroll down for hints :) -mod delicious_snacks { +mod delicious_snacks { use self::fruits::PEAR as fruit; use self::veggies::CUCUMBER as veggie; @@ -17,9 +17,11 @@ mod delicious_snacks { } fn main() { - println!("favorite snacks: {} and {}", - delicious_snacks::fruit, - delicious_snacks::veggie); + println!( + "favorite snacks: {} and {}", + delicious_snacks::fruit, + delicious_snacks::veggie + ); } |
