aboutsummaryrefslogtreecommitdiffstats
path: root/mumctl/src/main.rs
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2020-11-02 23:43:42 +0100
committerEskil Queseth <eskilq@kth.se>2020-11-02 23:43:42 +0100
commit972c11fe66c17728981ec57796c78fb70c7bd180 (patch)
treec5757dbe3589055bd807b57570581cf1ce9f1160 /mumctl/src/main.rs
parent2fc37a27ef0d2705edc16165977e1d7849c4d850 (diff)
downloadmum-972c11fe66c17728981ec57796c78fb70c7bd180.tar.gz
remove commented out code
Diffstat (limited to 'mumctl/src/main.rs')
-rw-r--r--mumctl/src/main.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/mumctl/src/main.rs b/mumctl/src/main.rs
index 340539c..cbad4c6 100644
--- a/mumctl/src/main.rs
+++ b/mumctl/src/main.rs
@@ -374,7 +374,6 @@ fn match_server_config(matches: &clap::ArgMatches<'_>, config: &mut mumlib::conf
}
fn match_server_rename(matches: &clap::ArgMatches<'_>, config: &mut mumlib::config::Config) {
- //if let Some(servers) = &mut config.servers {
let prev_name = matches.value_of("prev_name").unwrap();
let next_name = matches.value_of("next_name").unwrap();
if let Some(server) = config.servers.iter_mut().find(|s| s.name == prev_name) {
@@ -382,12 +381,10 @@ fn match_server_rename(matches: &clap::ArgMatches<'_>, config: &mut mumlib::conf
} else {
println!("{} server {} not found", "error:".red(), prev_name);
}
- //}
}
fn match_server_remove(matches: &clap::ArgMatches<'_>, config: &mut mumlib::config::Config) {
let name = matches.value_of("name").unwrap();
- //if let Some(servers) = &mut config.servers {
match config.servers.iter().position(|server| server.name == name) {
Some(idx) => {
config.servers.remove(idx);