aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/async_di_container.rs1
-rw-r--r--src/di_container.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/async_di_container.rs b/src/async_di_container.rs
index 1ead116..7e01c66 100644
--- a/src/async_di_container.rs
+++ b/src/async_di_container.rs
@@ -402,6 +402,7 @@ impl AsyncDIContainer
}
/// Returns a new [`AsyncBindingBuilder`] for the given interface.
+ #[must_use]
pub fn bind<Interface>(self: &mut Arc<Self>) -> AsyncBindingBuilder<Interface>
where
Interface: 'static + ?Sized,
diff --git a/src/di_container.rs b/src/di_container.rs
index 3adee09..2907969 100644
--- a/src/di_container.rs
+++ b/src/di_container.rs
@@ -349,6 +349,7 @@ impl DIContainer
}
/// Returns a new [`BindingBuilder`] for the given interface.
+ #[must_use]
pub fn bind<Interface>(self: &mut Rc<Self>) -> BindingBuilder<Interface>
where
Interface: 'static + ?Sized,