diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-22 06:46:29 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-22 06:46:29 -0400 |
commit | 036f51ad6deddaf149685e6fd4945b1ed30543e3 (patch) | |
tree | bb2d24faf3eeb1b00ef295739d103768d9e8aa80 /src/config.rs | |
parent | d6472faae56121d53f87c8ccffe40cf0a3d815dc (diff) | |
download | teleterm-036f51ad6deddaf149685e6fd4945b1ed30543e3.tar.gz teleterm-036f51ad6deddaf149685e6fd4945b1ed30543e3.zip |
remove some duplication
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index c626afe..6a9c2c0 100644 --- a/src/config.rs +++ b/src/config.rs @@ -35,7 +35,9 @@ pub trait Config: std::fmt::Debug { &mut self, matches: &clap::ArgMatches<'a>, ) -> Result<()>; - fn run(&self) -> Result<()>; + fn run( + &self, + ) -> Box<dyn futures::future::Future<Item = (), Error = Error> + Send>; } pub fn config( |