From b673dfd4d7110ba7bff615f945ea64d54218982f Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 13 Jun 2019 17:22:09 -0700 Subject: [PATCH] fixup some warnings, rename mux related flags --- src/main.rs | 8 ++++---- src/server/client.rs | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index fef575d82..defbbdad6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ #![windows_subsystem = "windows"] use failure::Error; -use log::{error, info}; +use log::error; use std::ffi::OsString; use structopt::StructOpt; use tabout::{tabulate_output, Alignment, Column}; @@ -94,8 +94,8 @@ struct StartCommand { /// If true, use the incomplete multiplexer client as the /// default domain for new tabs and windows - #[structopt(long = "broken-mux-client-as-default-domain")] - broken_mux_client_as_default_domain: bool, + #[structopt(long = "mux-client-as-default-domain")] + mux_client_as_default_domain: bool, /// Instead of executing your shell, run PROG. /// For example: `wezterm start -- bash -l` will spawn bash @@ -143,7 +143,7 @@ fn run_terminal_gui(config: Arc, opts: &StartCommand) -> Result< None }; - let domain: Arc = if opts.broken_mux_client_as_default_domain { + let domain: Arc = if opts.mux_client_as_default_domain { let client = Client::new(&config)?; Arc::new(ClientDomain::new(client)) } else { diff --git a/src/server/client.rs b/src/server/client.rs index 6c6453b1f..87c24101a 100644 --- a/src/server/client.rs +++ b/src/server/client.rs @@ -1,3 +1,4 @@ +#![allow(dead_code)] use crate::config::Config; use crate::server::codec::*; use crate::server::UnixStream;