Skip to content

Commit de24536

Browse files
authored
macros4.rs: Add rustfmt::skip to prevent auto-fix.
The `macros4.rs` challenge can automatically be solved by rustfmt without the user noticing. Adding `#[rustfmt::skip]` above the `macro_rules!` line fixes this issue.
1 parent 701b4be commit de24536

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

exercises/macros/macros4.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
// I AM NOT DONE
55

6+
#[rustfmt::skip]
67
macro_rules! my_macro {
78
() => {
89
println!("Check out my macro!");

0 commit comments

Comments
 (0)