1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-26 06:42:12 +03:00

fixup some warnings on linux

This commit is contained in:
Wez Furlong 2019-02-22 20:33:07 -08:00
parent b448cfec4d
commit 5dad7019da
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ use crate::font::FontConfiguration;
use crate::futurecore; use crate::futurecore;
use crate::xwindows::xwin::TerminalWindow; use crate::xwindows::xwin::TerminalWindow;
use crate::xwindows::Connection; use crate::xwindows::Connection;
use crate::{openpty, Child, Command, MasterPty}; use crate::{openpty, Child, MasterPty};
use failure::Error; use failure::Error;
use mio::unix::EventedFd; use mio::unix::EventedFd;
use mio::{Event, Evented, Events, Poll, PollOpt, Ready, Token}; use mio::{Event, Evented, Events, Poll, PollOpt, Ready, Token};
@ -248,7 +248,7 @@ impl GuiEventLoop {
config: &Rc<Config>, config: &Rc<Config>,
fontconfig: &Rc<FontConfiguration>, fontconfig: &Rc<FontConfiguration>,
) -> Result<(), Error> { ) -> 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 // First step is to figure out the font metrics so that we know how
// big things are going to be. // big things are going to be.
// we always load the cell_height for font 0, // we always load the cell_height for font 0,

View File

@ -1,5 +1,5 @@
use super::super::opengl::render::Renderer; use super::super::opengl::render::Renderer;
use super::super::{Child, Command}; use super::super::Child;
use super::xkeysyms; use super::xkeysyms;
use super::{Connection, Window}; use super::{Connection, Window};
use crate::config::Config; use crate::config::Config;
@ -519,7 +519,7 @@ impl TerminalWindow {
let cols = (self.width as usize + 1) / self.cell_width; 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 (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)?); let process = RefCell::new(slave.spawn_command(cmd)?);
eprintln!("spawned: {:?}", process); eprintln!("spawned: {:?}", process);