summaryrefslogtreecommitdiff
path: root/solutions
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-09-13 14:56:46 +0200
committermo8it <mo8it@proton.me>2024-09-13 14:56:46 +0200
commit0513660b05e8dd45ba7bb25fff89b4fd089b14ea (patch)
treee7c1af45ef8ed8f2189e4df8359f5e666ad02ce9 /solutions
parent3947c4de284cb82945055a0fe802c2755e951bb9 (diff)
Allow dead code for all exercises and solutions
Diffstat (limited to 'solutions')
-rw-r--r--solutions/08_enums/enums2.rs2
-rw-r--r--solutions/10_modules/modules2.rs1
-rw-r--r--solutions/15_traits/traits3.rs2
-rw-r--r--solutions/19_smart_pointers/rc1.rs1
4 files changed, 0 insertions, 6 deletions
diff --git a/solutions/08_enums/enums2.rs b/solutions/08_enums/enums2.rs
index 2ee0553..07aee26 100644
--- a/solutions/08_enums/enums2.rs
+++ b/solutions/08_enums/enums2.rs
@@ -1,5 +1,3 @@
-#![allow(dead_code)]
-
#[derive(Debug)]
struct Point {
x: u64,
diff --git a/solutions/10_modules/modules2.rs b/solutions/10_modules/modules2.rs
index 298d76e..55c316d 100644
--- a/solutions/10_modules/modules2.rs
+++ b/solutions/10_modules/modules2.rs
@@ -1,4 +1,3 @@
-#[allow(dead_code)]
mod delicious_snacks {
// Added `pub` and used the expected alias after `as`.
pub use self::fruits::PEAR as fruit;
diff --git a/solutions/15_traits/traits3.rs b/solutions/15_traits/traits3.rs
index 747d919..3d8ec85 100644
--- a/solutions/15_traits/traits3.rs
+++ b/solutions/15_traits/traits3.rs
@@ -1,5 +1,3 @@
-#![allow(dead_code)]
-
trait Licensed {
fn licensing_info(&self) -> String {
"Default license".to_string()
diff --git a/solutions/19_smart_pointers/rc1.rs b/solutions/19_smart_pointers/rc1.rs
index 512eb9c..c0a41ab 100644
--- a/solutions/19_smart_pointers/rc1.rs
+++ b/solutions/19_smart_pointers/rc1.rs
@@ -8,7 +8,6 @@ use std::rc::Rc;
#[derive(Debug)]
struct Sun;
-#[allow(dead_code)]
#[derive(Debug)]
enum Planet {
Mercury(Rc<Sun>),