mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vhost_user_block: Use config::OptionParser to simplify block backend parsing
Switch to using the recently added OptionParser in the code that parses the block backend. Fixes: #1092 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
592de97fbd
commit
5016fcf8d5
@@ -317,9 +317,9 @@ impl<'a> VmParams<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
struct Toggle(bool);
|
||||
pub struct Toggle(pub bool);
|
||||
|
||||
enum ToggleParseError {
|
||||
pub enum ToggleParseError {
|
||||
InvalidValue(String),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user