summaryrefslogtreecommitdiffstats
path: root/libimagrt
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-10-31 22:31:03 +0100
committerMatthias Beyer <mail@beyermatthias.de>2016-11-02 14:37:45 +0100
commit39304db8bab7e34e9756f8971f7a4222affb1b37 (patch)
tree70684dc8a294db1d6bc29a9e8e4774f42a5a15e8 /libimagrt
parent82e61db4f7551b50787811f49bb42d609e4ba704 (diff)
Clone App here so we can consume it elsewhere
Diffstat (limited to 'libimagrt')
-rw-r--r--libimagrt/src/runtime.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libimagrt/src/runtime.rs b/libimagrt/src/runtime.rs
index 995f889a..a1ff47a7 100644
--- a/libimagrt/src/runtime.rs
+++ b/libimagrt/src/runtime.rs
@@ -55,7 +55,7 @@ impl<'a> Runtime<'a> {
* The cli_spec object should be initially build with the ::get_default_cli_builder() function.
*
*/
- pub fn new(cli_spec: App<'a, 'a>) -> Result<Runtime<'a>, RuntimeError> {
+ pub fn new(mut cli_spec: App<'a, 'a>) -> Result<Runtime<'a>, RuntimeError> {
use std::env;
use std::io::stdout;
@@ -74,7 +74,7 @@ impl<'a> Runtime<'a> {
use configuration::error::ConfigErrorKind;
- let matches = cli_spec.get_matches();
+ let matches = cli_spec.clone().get_matches();
let is_debugging = matches.is_present("debugging");
let is_verbose = matches.is_present("verbosity");