From 12acab96a7d9ba8032378f8be7b6932f4406a849 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 20 Aug 2022 17:40:02 +0200 Subject: docs: simplify with-3rd-party example --- examples/with-3rd-party/third-party-lib/src/lib.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'examples/with-3rd-party/third-party-lib') 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!"); } -- cgit v1.2.3-18-g5258