diff --git a/rust/src/router/tests.rs b/rust/src/router/tests.rs index 16ef6db218..4ebc78cc75 100644 --- a/rust/src/router/tests.rs +++ b/rust/src/router/tests.rs @@ -16,11 +16,9 @@ async fn init() -> Worker { let worker_manager = WorkerManager::new(); worker_manager - .create_worker({ - let mut settings = WorkerSettings::default(); - settings.enable_liburing = false; - - settings + .create_worker(WorkerSettings { + enable_liburing: false, + ..WorkerSettings::default() }) .await .expect("Failed to create worker")