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:
parent
abc6672f21
commit
40a2e3b462
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue