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/di_container.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/di_container.rs') 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