From c4cf6ca8addb2b22c077bfa30e8112f5a6087f4a Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Wed, 7 May 2014 09:45:53 -0400 Subject: [PATCH] Update for master --- src/libterm/terminfo/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libterm/terminfo/mod.rs b/src/libterm/terminfo/mod.rs index 93a7657fae9..0c07bbd1e6d 100644 --- a/src/libterm/terminfo/mod.rs +++ b/src/libterm/terminfo/mod.rs @@ -23,6 +23,7 @@ use self::parm::{expand, Number, Variables}; /// A parsed terminfo database entry. +#[deriving(Show)] pub struct TermInfo { /// Names for the terminal pub names: Vec , @@ -86,7 +87,7 @@ impl Terminal for TerminfoTerminal { // msys terminal return Some(TerminfoTerminal {out: out, ti: msys_terminfo(), num_colors: 8}); } - debug!("error finding terminfo entry: {}", entry.unwrap_err()); + debug!("error finding terminfo entry: {}", entry.err().unwrap()); return None; } @@ -183,7 +184,7 @@ impl Terminal for TerminfoTerminal { cap = self.ti.strings.find_equiv(&("op")); } } - let s = cap.map_or(Err(~"can't find terminfo capability `sgr0`"), |op| { + let s = cap.map_or(Err("can't find terminfo capability `sgr0`".to_owned()), |op| { expand(op.as_slice(), [], &mut Variables::new()) }); if s.is_ok() {