mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-28 04:49:33 +01:00
make the tasks and resources fields optional
This commit is contained in:
parent
e18eb9610e
commit
b7e43c1dbc
1 changed files with 2 additions and 2 deletions
|
@ -130,8 +130,8 @@ pub fn app(input: &str) -> App {
|
|||
device: device.expect("device field is missing"),
|
||||
idle: idle.expect("idle field is missing"),
|
||||
init: init.expect("init field is missing"),
|
||||
resources: resources.expect("resources field is missing"),
|
||||
tasks: tasks.expect("tasks field is missing"),
|
||||
resources: resources.unwrap_or(HashMap::new()),
|
||||
tasks: tasks.unwrap_or(HashMap::new()),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue