diff --git a/src/guiloop/x11.rs b/src/guiloop/x11.rs index 8dd7ee8d6..160f2e78a 100644 --- a/src/guiloop/x11.rs +++ b/src/guiloop/x11.rs @@ -4,7 +4,7 @@ use crate::font::FontConfiguration; use crate::futurecore; use crate::xwindows::xwin::TerminalWindow; use crate::xwindows::Connection; -use crate::{openpty, Child, Command, MasterPty}; +use crate::{openpty, Child, MasterPty}; use failure::Error; use mio::unix::EventedFd; use mio::{Event, Evented, Events, Poll, PollOpt, Ready, Token}; @@ -248,7 +248,7 @@ impl GuiEventLoop { config: &Rc, fontconfig: &Rc, ) -> Result<(), Error> { - let mut cmd = config.build_prog(None)?; + let cmd = config.build_prog(None)?; // First step is to figure out the font metrics so that we know how // big things are going to be. // we always load the cell_height for font 0, diff --git a/src/xwindows/xwin.rs b/src/xwindows/xwin.rs index a4e6e711d..31ef034aa 100644 --- a/src/xwindows/xwin.rs +++ b/src/xwindows/xwin.rs @@ -1,5 +1,5 @@ use super::super::opengl::render::Renderer; -use super::super::{Child, Command}; +use super::super::Child; use super::xkeysyms; use super::{Connection, Window}; use crate::config::Config; @@ -519,7 +519,7 @@ impl TerminalWindow { let cols = (self.width as usize + 1) / self.cell_width; let (pty, slave) = openpty(rows as u16, cols as u16, self.width, self.height)?; - let mut cmd = self.host.config.build_prog(None)?; + let cmd = self.host.config.build_prog(None)?; let process = RefCell::new(slave.spawn_command(cmd)?); eprintln!("spawned: {:?}", process);