summaryrefslogtreecommitdiff
path: root/src/tests/mod.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-04-11 13:23:52 -0700
committerDaniel Mueller <deso@posteo.net>2020-04-11 13:23:52 -0700
commitfafbf4a1bf635d5eea049cf561fbf8aa293c8e2b (patch)
treed018a9e74d044e9161f436f2a5fd977022cf9599 /src/tests/mod.rs
parent93c605418568bf71bcc3be6956f07f9650b45fea (diff)
downloadnitrocli-fafbf4a1bf635d5eea049cf561fbf8aa293c8e2b.tar.gz
nitrocli-fafbf4a1bf635d5eea049cf561fbf8aa293c8e2b.tar.bz2
Merge remaining bits of args.rs into main.rs
This change removes the args module by moving all remaining functionality in it into main.rs. The result is arguably a nice consolidation of all context related definitions in a single module.
Diffstat (limited to 'src/tests/mod.rs')
-rw-r--r--src/tests/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/mod.rs b/src/tests/mod.rs
index 1edf8f2..abf63e3 100644
--- a/src/tests/mod.rs
+++ b/src/tests/mod.rs
@@ -178,7 +178,7 @@ impl Nitrocli {
/// Run `nitrocli`'s `handle_arguments` function.
pub fn handle(&mut self, args: &[&str]) -> crate::Result<String> {
- let (res, out, _) = self.do_run(args, |c, a| crate::args::handle_arguments(c, a));
+ let (res, out, _) = self.do_run(args, |c, a| crate::handle_arguments(c, a));
res.map(|_| String::from_utf8_lossy(&out).into_owned())
}