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/15_traits | |
| parent | d0b843d6c4a99636d3dc6caf3ceebea14cb3b07d (diff) | |
Remove unneeded pub
Diffstat (limited to 'exercises/15_traits')
| -rw-r--r-- | exercises/15_traits/traits3.rs | 2 | ||||
| -rw-r--r-- | exercises/15_traits/traits4.rs | 2 | ||||
| -rw-r--r-- | exercises/15_traits/traits5.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/exercises/15_traits/traits3.rs b/exercises/15_traits/traits3.rs index 9a2365a..66da235 100644 --- a/exercises/15_traits/traits3.rs +++ b/exercises/15_traits/traits3.rs @@ -3,7 +3,7 @@ // // Consider what you can add to the Licensed trait. -pub trait Licensed { +trait Licensed { fn licensing_info(&self) -> String; } diff --git a/exercises/15_traits/traits4.rs b/exercises/15_traits/traits4.rs index 7af30b5..ed63f6e 100644 --- a/exercises/15_traits/traits4.rs +++ b/exercises/15_traits/traits4.rs @@ -2,7 +2,7 @@ // // Don't change any line other than the marked one. -pub trait Licensed { +trait Licensed { fn licensing_info(&self) -> String { "some information".to_string() } diff --git a/exercises/15_traits/traits5.rs b/exercises/15_traits/traits5.rs index 9a45bb7..3e62283 100644 --- a/exercises/15_traits/traits5.rs +++ b/exercises/15_traits/traits5.rs @@ -2,13 +2,13 @@ // // Don't change any line other than the marked one. -pub trait SomeTrait { +trait SomeTrait { fn some_function(&self) -> bool { true } } -pub trait OtherTrait { +trait OtherTrait { fn other_function(&self) -> bool { true } |
