From f7975f33978142461e67f5ebb2e478aa89c42d21 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 1 Aug 2023 17:56:49 +0200 Subject: test: clean up binding configurator unit tests --- src/di_container/asynchronous/binding/when_configurator.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/di_container/asynchronous/binding/when_configurator.rs') 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()); } } -- cgit v1.2.3-18-g5258