diff options
Diffstat (limited to 'src/di_container/asynchronous')
-rw-r--r-- | src/di_container/asynchronous/binding/scope_configurator.rs | 8 | ||||
-rw-r--r-- | src/di_container/asynchronous/binding/when_configurator.rs | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/di_container/asynchronous/binding/scope_configurator.rs b/src/di_container/asynchronous/binding/scope_configurator.rs index 2271a16..eaedcbe 100644 --- a/src/di_container/asynchronous/binding/scope_configurator.rs +++ b/src/di_container/asynchronous/binding/scope_configurator.rs @@ -170,9 +170,9 @@ mod tests mocks::MockDependencyHistory::new, ); - assert!(matches!( - binding_scope_configurator.in_singleton_scope().await, - Ok(_) - )); + assert!(binding_scope_configurator + .in_singleton_scope() + .await + .is_ok()); } } diff --git a/src/di_container/asynchronous/binding/when_configurator.rs b/src/di_container/asynchronous/binding/when_configurator.rs index fb14bd4..c1bb8c5 100644 --- a/src/di_container/asynchronous/binding/when_configurator.rs +++ b/src/di_container/asynchronous/binding/when_configurator.rs @@ -103,9 +103,9 @@ mod tests mocks::MockDependencyHistory, >::new(Arc::new(di_container_mock)); - assert!(matches!( - binding_when_configurator.when_named("awesome").await, - Ok(_) - )); + assert!(binding_when_configurator + .when_named("awesome") + .await + .is_ok()); } } |