diff options
author | HampusM <hampus@hampusmat.com> | 2022-08-20 17:40:02 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-08-21 18:17:50 +0200 |
commit | 12acab96a7d9ba8032378f8be7b6932f4406a849 (patch) | |
tree | 3f162a7d7cad502b89ff76a02293b0f106a57059 /examples/with-3rd-party/third-party-lib/src/lib.rs | |
parent | f9d53a16fe08aedb805c52630d649aa035163edc (diff) |
docs: simplify with-3rd-party example
Diffstat (limited to 'examples/with-3rd-party/third-party-lib/src/lib.rs')
-rw-r--r-- | examples/with-3rd-party/third-party-lib/src/lib.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/examples/with-3rd-party/third-party-lib/src/lib.rs b/examples/with-3rd-party/third-party-lib/src/lib.rs index f3b3ed3..a5afcec 100644 --- a/examples/with-3rd-party/third-party-lib/src/lib.rs +++ b/examples/with-3rd-party/third-party-lib/src/lib.rs @@ -1,8 +1,3 @@ -pub trait IShuriken -{ - fn throw(&self); -} - pub struct Shuriken {} impl Shuriken @@ -12,11 +7,8 @@ impl Shuriken { Self {} } -} -impl IShuriken for Shuriken -{ - fn throw(&self) + pub fn throw(&self) { println!("Threw shuriken!"); } |