summaryrefslogtreecommitdiff
path: root/solutions/19_smart_pointers
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-07-04 13:38:35 +0200
committermo8it <mo8it@proton.me>2024-07-04 13:38:35 +0200
commitb87aa986345cd80bc44c7fe7bffeb72f5fe0ddb5 (patch)
treeb9f2400168cfba69cb3f0914e337df2436843023 /solutions/19_smart_pointers
parenta4c07ca948dd57c71fe1894d05308af03304dec8 (diff)
Fix warnings
Diffstat (limited to 'solutions/19_smart_pointers')
-rw-r--r--solutions/19_smart_pointers/rc1.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/solutions/19_smart_pointers/rc1.rs b/solutions/19_smart_pointers/rc1.rs
index c0a41ab..512eb9c 100644
--- a/solutions/19_smart_pointers/rc1.rs
+++ b/solutions/19_smart_pointers/rc1.rs
@@ -8,6 +8,7 @@ use std::rc::Rc;
#[derive(Debug)]
struct Sun;
+#[allow(dead_code)]
#[derive(Debug)]
enum Planet {
Mercury(Rc<Sun>),