mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
main: Simplify error and return handling in start_vmm
Use a Result<> type with an error to simplify the code in start_vmm(). This will also make it easier to add cleanup funtionality. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -212,6 +212,7 @@ dependencies = [
|
||||
name = "cloud-hypervisor"
|
||||
version = "0.10.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"api_client",
|
||||
"clap",
|
||||
"credibility",
|
||||
@@ -227,6 +228,7 @@ dependencies = [
|
||||
"ssh2",
|
||||
"tempdir",
|
||||
"tempfile",
|
||||
"thiserror",
|
||||
"vhost_user_block",
|
||||
"vhost_user_net",
|
||||
"vmm",
|
||||
|
||||
Reference in New Issue
Block a user