aboutsummaryrefslogtreecommitdiff
path: root/examples/with-3rd-party/third-party-lib/src/lib.rs
diff options
context:
space:
mode:
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.rs23
1 files changed, 23 insertions, 0 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
new file mode 100644
index 0000000..f3b3ed3
--- /dev/null
+++ b/examples/with-3rd-party/third-party-lib/src/lib.rs
@@ -0,0 +1,23 @@
+pub trait IShuriken
+{
+ fn throw(&self);
+}
+
+pub struct Shuriken {}
+
+impl Shuriken
+{
+ #[allow(clippy::new_without_default)]
+ pub fn new() -> Self
+ {
+ Self {}
+ }
+}
+
+impl IShuriken for Shuriken
+{
+ fn throw(&self)
+ {
+ println!("Threw shuriken!");
+ }
+}