From 9e07d37c23514cf5232ef212eac7b8742e6e8a42 Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Tue, 1 Aug 2023 06:33:49 +0200 Subject: [PATCH] fix cargo test compilation --- core/parentchain/light-client/src/concurrent_access.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/parentchain/light-client/src/concurrent_access.rs b/core/parentchain/light-client/src/concurrent_access.rs index 590e4b7b99..f6482c9233 100644 --- a/core/parentchain/light-client/src/concurrent_access.rs +++ b/core/parentchain/light-client/src/concurrent_access.rs @@ -126,7 +126,7 @@ mod tests { fn execute_with_and_without_mut_in_single_thread_works() { let validator_mock = ValidatorMock::default(); let seal = LightValidationStateSealMock::new(); - let accessor = TestAccessor::new(validator_mock, seal); + let accessor = TestAccessor::new(validator_mock, seal.into()); let _read_result = accessor.execute_on_validator(|_v| Ok(())).unwrap(); let _write_result = accessor.execute_mut_on_validator(|_v| Ok(())).unwrap();