From c2d52db297da64b6106ef8420e1593693ab6e082 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 12 Sep 2023 20:12:59 +0200 Subject: feat: make binding options name method const --- src/di_container/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/di_container/mod.rs b/src/di_container/mod.rs index 7e8c11f..4e60505 100644 --- a/src/di_container/mod.rs +++ b/src/di_container/mod.rs @@ -31,7 +31,7 @@ impl<'a> BindingOptions<'a> /// Returns `Self` with the specified name set. #[must_use] - pub fn name(mut self, name: &'a str) -> Self + pub const fn name(mut self, name: &'a str) -> Self { self.name = Some(name); -- cgit v1.2.3-18-g5258