mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-30 16:35:31 +00:00
Revert "main: Fix --net behavior"
This reverts commit 8e9e7601f57b0decc118bc78bdb9f0a0f41a8385.
This commit is contained in:
parent
8e9e7601f5
commit
6615d55223
11
src/main.rs
11
src/main.rs
@ -80,14 +80,9 @@ fn main() {
|
||||
.map(std::string::ToString::to_string)
|
||||
.unwrap_or_else(String::new);
|
||||
|
||||
let mut net_params = None;
|
||||
if cmd_arguments.is_present("net") {
|
||||
if let Some(net) = cmd_arguments.value_of("net") {
|
||||
net_params = Some(net.to_string());
|
||||
} else {
|
||||
net_params = Some(String::new())
|
||||
}
|
||||
}
|
||||
let net_params = cmd_arguments
|
||||
.value_of("net")
|
||||
.map(std::string::ToString::to_string);
|
||||
|
||||
let rng_path = match cmd_arguments.occurrences_of("rng") {
|
||||
0 => None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user