aboutsummaryrefslogtreecommitdiff
path: root/examples/with-3rd-party/ninja.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/ninja.rs
parentf9d53a16fe08aedb805c52630d649aa035163edc (diff)
docs: simplify with-3rd-party example
Diffstat (limited to 'examples/with-3rd-party/ninja.rs')
-rw-r--r--examples/with-3rd-party/ninja.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/with-3rd-party/ninja.rs b/examples/with-3rd-party/ninja.rs
index 945adf0..5b80b36 100644
--- a/examples/with-3rd-party/ninja.rs
+++ b/examples/with-3rd-party/ninja.rs
@@ -1,17 +1,17 @@
use syrette::{injectable, ptr::TransientPtr};
-use third_party_lib::IShuriken;
+use third_party_lib::Shuriken;
use crate::interfaces::ninja::INinja;
pub struct Ninja
{
- shuriken: TransientPtr<dyn IShuriken>,
+ shuriken: TransientPtr<Shuriken>,
}
#[injectable(INinja)]
impl Ninja
{
- pub fn new(shuriken: TransientPtr<dyn IShuriken>) -> Self
+ pub fn new(shuriken: TransientPtr<Shuriken>) -> Self
{
Self { shuriken }
}