aboutsummaryrefslogtreecommitdiff
path: root/macros/src/lib.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-09-30 17:09:24 +0200
committerHampusM <hampus@hampusmat.com>2023-09-30 17:09:24 +0200
commitba7af1342e9b4ae1ed691035ba90ef3776a9126a (patch)
tree4bc9fb94719c5d103213d99ff3175a8ed4037e91 /macros/src/lib.rs
parent756370ed8efd39281b21cd8656ee09d785a114dd (diff)
refactor: remove unnecessary cloning of impl generics & self type
Diffstat (limited to 'macros/src/lib.rs')
-rw-r--r--macros/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs
index 78895be..6bf5ac1 100644
--- a/macros/src/lib.rs
+++ b/macros/src/lib.rs
@@ -239,7 +239,7 @@ pub fn injectable(args_stream: TokenStream, input_stream: TokenStream) -> TokenS
let expanded_injectable_impl = injectable_impl.expand(no_doc_hidden, is_async);
- let self_type = &injectable_impl.self_type;
+ let self_type = injectable_impl.self_type();
let opt_interface = args.interface.map(Type::Path).or_else(|| {
if no_declare_concrete_interface {