From 3fbf26181f1b4b9e594debb103fd347bd93240ea Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 27 Jul 2022 15:17:33 +0200 Subject: refactor!: rename InterfacePtr to TransientPtr BREAKING CHANGE: InterfacePtr has been renamed to TransientPtr --- examples/basic/animals/human.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/basic') diff --git a/examples/basic/animals/human.rs b/examples/basic/animals/human.rs index 00574a3..8e52b5b 100644 --- a/examples/basic/animals/human.rs +++ b/examples/basic/animals/human.rs @@ -1,5 +1,5 @@ use syrette::injectable; -use syrette::ptr::InterfacePtr; +use syrette::ptr::TransientPtr; use crate::interfaces::cat::ICat; use crate::interfaces::dog::IDog; @@ -7,14 +7,14 @@ use crate::interfaces::human::IHuman; pub struct Human { - dog: InterfacePtr, - cat: InterfacePtr, + dog: TransientPtr, + cat: TransientPtr, } #[injectable(IHuman)] impl Human { - pub fn new(dog: InterfacePtr, cat: InterfacePtr) -> Self + pub fn new(dog: TransientPtr, cat: TransientPtr) -> Self { Self { dog, cat } } -- cgit v1.2.3-18-g5258