diff options
author | HampusM <hampus@hampusmat.com> | 2023-01-19 20:21:17 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-01-19 20:21:17 +0100 |
commit | bd10288adfaabdeb763fecb2f66d7dc4d35b37ee (patch) | |
tree | 697f66757382a974a964faac52bb147453ff819a /src/di_container/asynchronous/binding/when_configurator.rs | |
parent | 45533a946c296a3a748a645fb80869f93ad7f09a (diff) |
refactor!: make binding builder & configurator methods take self ownership
BREAKING CHANGE: The methods of BindingBuilder, AsyncBuilder, BindingScopeConfigurator, AsyncBindingScopeConfigurator, BindingWhenConfigurator, AsyncBindingWhenConfigurator now take ownership of self
Diffstat (limited to 'src/di_container/asynchronous/binding/when_configurator.rs')
-rw-r--r-- | src/di_container/asynchronous/binding/when_configurator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/di_container/asynchronous/binding/when_configurator.rs b/src/di_container/asynchronous/binding/when_configurator.rs index 4d56347..fb14bd4 100644 --- a/src/di_container/asynchronous/binding/when_configurator.rs +++ b/src/di_container/asynchronous/binding/when_configurator.rs @@ -45,7 +45,7 @@ where /// # Errors /// Will return Err if no binding for the interface already exists. pub async fn when_named( - &self, + self, name: &'static str, ) -> Result<(), AsyncBindingWhenConfiguratorError> { |