From 40a2e3b46256267e05adb9958d73833b7f952652 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 25 Nov 2020 16:22:41 +0000 Subject: [PATCH] vhost_user_block: Fix clippy issue Found by: cargo clippy --all-features --all --tests Signed-off-by: Rob Bradford --- vhost_user_block/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")