We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unwrap_or_default
1 parent 1fec560 commit b5ad75fCopy full SHA for b5ad75f
vmm/src/main.rs
@@ -161,8 +161,8 @@ async fn main() -> Result<()> {
161
let config = Config::extract_or_default(&figment)?.abs_path()?;
162
163
// Handle commands
164
- match args.command {
165
- Some(Command::Run(run_args)) => {
+ match args.command.unwrap_or_default() {
+ Command::Run(run_args) => {
166
// One-shot VM execution mode
167
return one_shot::run_one_shot(
168
&run_args.vm_config,
@@ -172,7 +172,7 @@ async fn main() -> Result<()> {
172
)
173
.await;
174
}
175
- Some(Command::Serve) | None => {
+ Command::Serve => {
176
// Default server mode - continue to main server logic
177
178
0 commit comments