diff options
author | HampusM <hampus@hampusmat.com> | 2023-09-12 20:12:59 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-09-12 20:12:59 +0200 |
commit | c2d52db297da64b6106ef8420e1593693ab6e082 (patch) | |
tree | 08001a9462bd8ee420a2ef8622fc6a6549de6735 /src | |
parent | 736947c869acda30d5af3234bf01f24c8a720c10 (diff) |
feat: make binding options name method const
Diffstat (limited to 'src')
-rw-r--r-- | src/di_container/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |