fixup some warnings, remove dead code

This commit is contained in:
Wez Furlong committed 2019-02-17 16:24:55 -08:00
1 parent 7f0727a512
commit 89c0acf1e3
3 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -4,7 +4,6 @@ use super::super::config::{Config, TextStyle};
#[cfg(unix)]
use super::hbwrap as harfbuzz;
use failure::Error;
use unicode_width::UnicodeWidthStr;
/// A bitmap representation of a glyph.
/// The data is stored as pre-multiplied RGBA 32bpp.
@@ -49,6 +48,7 @@ impl GlyphInfo {
info: &harfbuzz::hb_glyph_info_t,
pos: &harfbuzz::hb_glyph_position_t,
) -> GlyphInfo {
use unicode_width::UnicodeWidthStr;
let num_cells = UnicodeWidthStr::width(text) as u8;
GlyphInfo {
#[cfg(debug_assertions)]
-1
View File
@@ -131,7 +131,6 @@ impl TerminalWindow {
let display = {
let pref_context = glutin::ContextBuilder::new()
//.with_gl(glutin::GlRequest::Specific(glutin::Api::OpenGlEs, (2, 0)))
.with_vsync(true)
.with_pixel_format(24, 8)
.with_srgb(true);
+1 -1
View File
@@ -474,7 +474,7 @@ impl MasterPty {
pub fn try_clone(&self) -> Result<Self, Error> {
// FIXME: this isn't great. Replace this with a way to
// clone the output handle and read it.
let mut inner = self.inner.lock().unwrap();
let inner = self.inner.lock().unwrap();
Ok(Self {
inner: Arc::new(Mutex::new(Inner {
con: PsuedoCon {