aboutsummaryrefslogtreecommitdiff
path: root/examples/with-3rd-party/third-party-lib/src/lib.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-08-20 17:40:02 +0200
committerHampusM <hampus@hampusmat.com>2022-08-21 18:17:50 +0200
commit12acab96a7d9ba8032378f8be7b6932f4406a849 (patch)
tree3f162a7d7cad502b89ff76a02293b0f106a57059 /examples/with-3rd-party/third-party-lib/src/lib.rs
parentf9d53a16fe08aedb805c52630d649aa035163edc (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.rs10
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!");
}