vhost_user_block: Fix clippy issue

Found by:  cargo clippy --all-features --all --tests

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-11-25 16:22:41 +00:00 committed by Samuel Ortiz
parent abc6672f21
commit 40a2e3b462

View File

@ -455,7 +455,7 @@ impl VhostUserBlkBackendConfig {
let poll_queue = parser
.convert::<Toggle>("poll_queue")
.map_err(Error::FailedConfigParse)?
.unwrap_or_else(|| Toggle(true))
.unwrap_or(Toggle(true))
.0;
let queue_size = parser
.convert("queue_size")