aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-20 00:12:57 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-20 00:52:52 -0400
commita1ffe44fd293bec84f56e858bec7a860ec643118 (patch)
treef1730a08a9a6c4579eeb9158b8099acd8f514769
parent31535dfd1d36d255451fa8dd2785d03032d10ce3 (diff)
downloadteleterm-a1ffe44fd293bec84f56e858bec7a860ec643118.tar.gz
teleterm-a1ffe44fd293bec84f56e858bec7a860ec643118.zip
i don't actually care about configuration via env vars
-rw-r--r--src/cmd.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cmd.rs b/src/cmd.rs
index 36151a8..838d3b1 100644
--- a/src/cmd.rs
+++ b/src/cmd.rs
@@ -90,13 +90,6 @@ pub fn run(matches: &clap::ArgMatches<'_>) -> Result<()> {
// work, so we should recreate it from scratch.
config = config::Config::default();
}
- // as far as i can tell, the Environment source can never actually fail.
- // this is good because figuring out the logic to handle recreating the
- // config object correctly (as per the previous comment) would be quite
- // complicated.
- config
- .merge(config::Environment::with_prefix("TELETERM"))
- .unwrap();
let mut cmd_config = (chosen_cmd.config)(config);
cmd_config.merge_args(chosen_submatches)?;