rust/rhg/src/main.rs
changeset 45449 ed95ccc94333
parent 45385 26440adbe3e9
child 45451 a6a000ab135b
--- a/rust/rhg/src/main.rs	Mon Aug 03 11:55:59 2020 +0200
+++ b/rust/rhg/src/main.rs	Tue Aug 04 16:11:23 2020 +0200
@@ -29,8 +29,8 @@
 
     let command_result = match matches.subcommand_name() {
         Some(name) => match name {
-            "root" => commands::root::RootCommand::new(&ui).run(),
-            "files" => commands::files::FilesCommand::new(&ui).run(),
+            "root" => commands::root::RootCommand::new().run(&ui),
+            "files" => commands::files::FilesCommand::new().run(&ui),
             _ => std::process::exit(exitcode::UNIMPLEMENTED_COMMAND),
         },
         _ => {