diff options
Diffstat (limited to 'src/di_container/blocking')
-rw-r--r-- | src/di_container/blocking/binding/scope_configurator.rs | 5 | ||||
-rw-r--r-- | src/di_container/blocking/binding/when_configurator.rs | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/di_container/blocking/binding/scope_configurator.rs b/src/di_container/blocking/binding/scope_configurator.rs index ede0f6b..af231ef 100644 --- a/src/di_container/blocking/binding/scope_configurator.rs +++ b/src/di_container/blocking/binding/scope_configurator.rs @@ -161,9 +161,6 @@ mod tests mocks::MockDependencyHistory::new, ); - assert!(matches!( - binding_scope_configurator.in_singleton_scope(), - Ok(_) - )); + assert!(binding_scope_configurator.in_singleton_scope().is_ok()); } } diff --git a/src/di_container/blocking/binding/when_configurator.rs b/src/di_container/blocking/binding/when_configurator.rs index 656d81d..82f12f2 100644 --- a/src/di_container/blocking/binding/when_configurator.rs +++ b/src/di_container/blocking/binding/when_configurator.rs @@ -101,9 +101,6 @@ mod tests mocks::MockDependencyHistory, >::new(Rc::new(di_container_mock)); - assert!(matches!( - binding_when_configurator.when_named("cool"), - Ok(_) - )); + assert!(binding_when_configurator.when_named("cool").is_ok()); } } |