summaryrefslogtreecommitdiff
path: root/exercises/macros
diff options
context:
space:
mode:
author0lhi <74732674+0lhi@users.noreply.github.com>2023-02-24 01:43:23 +0100
committerGitHub <noreply@github.com>2023-02-24 01:43:23 +0100
commitde24536187841eed4ab60aa375e2a02e1abe3f63 (patch)
tree0c51d793959020ba9335ee577bcce23a845b0f35 /exercises/macros
parent701b4bef51b50d1fd3bb7fbfe3cc274f2bbdcb0c (diff)
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.
Diffstat (limited to 'exercises/macros')
-rw-r--r--exercises/macros/macros4.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/exercises/macros/macros4.rs b/exercises/macros/macros4.rs
index c1fc5e8..4ee9803 100644
--- a/exercises/macros/macros4.rs
+++ b/exercises/macros/macros4.rs
@@ -3,6 +3,7 @@
// I AM NOT DONE
+#[rustfmt::skip]
macro_rules! my_macro {
() => {
println!("Check out my macro!");