From 145a257775f2397ceba0941ac2a2642cf3382dcb Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 23 Sep 2022 21:37:55 +0200 Subject: refactor: make the async & non-async DI container bind methods must_use --- src/async_di_container.rs | 1 + src/di_container.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'src') 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(self: &mut Arc) -> AsyncBindingBuilder 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(self: &mut Rc) -> BindingBuilder where Interface: 'static + ?Sized, -- cgit v1.2.3-18-g5258