aboutsummaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-27 15:17:33 +0200
committerHampusM <hampus@hampusmat.com>2022-07-31 12:15:18 +0200
commit3fbf26181f1b4b9e594debb103fd347bd93240ea (patch)
tree63cf13edb5ea21a6cbbcfcf474611820382a5048 /macros/src
parent224e59112e65ce6cbafe5a87dba031dd11e936a8 (diff)
refactor!: rename InterfacePtr to TransientPtr
BREAKING CHANGE: InterfacePtr has been renamed to TransientPtr
Diffstat (limited to 'macros/src')
-rw-r--r--macros/src/injectable_impl.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/macros/src/injectable_impl.rs b/macros/src/injectable_impl.rs
index 822a432..89346e8 100644
--- a/macros/src/injectable_impl.rs
+++ b/macros/src/injectable_impl.rs
@@ -60,12 +60,12 @@ impl InjectableImpl
fn resolve(
#di_container_var: &syrette::DIContainer
) -> syrette::libs::error_stack::Result<
- syrette::ptr::InterfacePtr<Self>,
+ syrette::ptr::TransientPtr<Self>,
syrette::errors::injectable::ResolveError>
{
use syrette::libs::error_stack::ResultExt;
- return Ok(syrette::ptr::InterfacePtr::new(Self::new(
+ return Ok(syrette::ptr::TransientPtr::new(Self::new(
#(#get_dependencies
.change_context(syrette::errors::injectable::ResolveError)
.attach_printable(
@@ -191,9 +191,9 @@ impl InjectableImpl
{
let arg_type_path_string = Self::_path_to_string(&type_path.path);
- arg_type_path_string == "InterfacePtr"
- || arg_type_path_string == "ptr::InterfacePtr"
- || arg_type_path_string == "syrrete::ptr::InterfacePtr"
+ arg_type_path_string == "TransientPtr"
+ || arg_type_path_string == "ptr::TransientPtr"
+ || arg_type_path_string == "syrrete::ptr::TransientPtr"
|| arg_type_path_string == "FactoryPtr"
|| arg_type_path_string == "ptr::FactoryPtr"
|| arg_type_path_string == "syrrete::ptr::FactoryPtr"
@@ -233,7 +233,7 @@ impl InjectableImpl
let opt_first_generic_arg = generic_args.first();
- // Assume a first generic argument exists because InterfacePtr and
+ // Assume a first generic argument exists because TransientPtr and
// FactoryPtr requires one
let first_generic_arg = opt_first_generic_arg.as_ref().unwrap();