diff --git a/vhost_user_block/src/lib.rs b/vhost_user_block/src/lib.rs index 7675698a0..05f5fcc08 100644 --- a/vhost_user_block/src/lib.rs +++ b/vhost_user_block/src/lib.rs @@ -455,7 +455,7 @@ impl VhostUserBlkBackendConfig { let poll_queue = parser .convert::("poll_queue") .map_err(Error::FailedConfigParse)? - .unwrap_or_else(|| Toggle(true)) + .unwrap_or(Toggle(true)) .0; let queue_size = parser .convert("queue_size")