summaryrefslogtreecommitdiff
path: root/solutions/08_enums/enums2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'solutions/08_enums/enums2.rs')
-rw-r--r--solutions/08_enums/enums2.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/solutions/08_enums/enums2.rs b/solutions/08_enums/enums2.rs
index 13175dd..b19394c 100644
--- a/solutions/08_enums/enums2.rs
+++ b/solutions/08_enums/enums2.rs
@@ -1,3 +1,4 @@
+#[allow(dead_code)]
#[derive(Debug)]
enum Message {
Move { x: i64, y: i64 },
@@ -8,7 +9,7 @@ enum Message {
impl Message {
fn call(&self) {
- println!("{:?}", self);
+ println!("{self:?}");
}
}