aboutsummaryrefslogtreecommitdiff
path: root/examples/example-resources/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example-resources/src/main.rs')
-rw-r--r--examples/example-resources/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example-resources/src/main.rs b/examples/example-resources/src/main.rs
index bb07d74..4d792b3 100644
--- a/examples/example-resources/src/main.rs
+++ b/examples/example-resources/src/main.rs
@@ -49,7 +49,7 @@ dispatcher!("modify-current", EntryModifyCurrent);
fn render_modify_current(args: EntryModifyCurrent, current_dir: &mut ResCurrentDir) -> Next {
current_dir.current_dir = current_dir
.current_dir
- .join(args.pick::<String>(()).unpack());
+ .join(args.pick_or_default(&arg![String]).unwrap());
EntryCurrent::default().into()
}