diff options
| author | mo8it <mo8it@proton.me> | 2024-05-22 15:04:12 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-05-22 15:04:12 +0200 |
| commit | 3bb71c6b0c9d58e421f79d914f5483cb5a98af0b (patch) | |
| tree | 3b28edae9903c24212be1aa54d5d0e7bd69bedfa /exercises/19_smart_pointers | |
| parent | d0b843d6c4a99636d3dc6caf3ceebea14cb3b07d (diff) | |
Remove unneeded pub
Diffstat (limited to 'exercises/19_smart_pointers')
| -rw-r--r-- | exercises/19_smart_pointers/box1.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/19_smart_pointers/box1.rs b/exercises/19_smart_pointers/box1.rs index 226a117..908c923 100644 --- a/exercises/19_smart_pointers/box1.rs +++ b/exercises/19_smart_pointers/box1.rs @@ -15,7 +15,7 @@ // Note: the tests should not be changed #[derive(PartialEq, Debug)] -pub enum List { +enum List { Cons(i32, List), Nil, } @@ -28,11 +28,11 @@ fn main() { ); } -pub fn create_empty_list() -> List { +fn create_empty_list() -> List { todo!() } -pub fn create_non_empty_list() -> List { +fn create_non_empty_list() -> List { todo!() } |
