Skip to content

Commit c4cf6ca

Browse files
committed
Update for master
1 parent 67aea1f commit c4cf6ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libterm/terminfo/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use self::parm::{expand, Number, Variables};
2323

2424

2525
/// A parsed terminfo database entry.
26+
#[deriving(Show)]
2627
pub struct TermInfo {
2728
/// Names for the terminal
2829
pub names: Vec<StrBuf> ,
@@ -86,7 +87,7 @@ impl<T: Writer> Terminal<T> for TerminfoTerminal<T> {
8687
// msys terminal
8788
return Some(TerminfoTerminal {out: out, ti: msys_terminfo(), num_colors: 8});
8889
}
89-
debug!("error finding terminfo entry: {}", entry.unwrap_err());
90+
debug!("error finding terminfo entry: {}", entry.err().unwrap());
9091
return None;
9192
}
9293

@@ -183,7 +184,7 @@ impl<T: Writer> Terminal<T> for TerminfoTerminal<T> {
183184
cap = self.ti.strings.find_equiv(&("op"));
184185
}
185186
}
186-
let s = cap.map_or(Err(~"can't find terminfo capability `sgr0`"), |op| {
187+
let s = cap.map_or(Err("can't find terminfo capability `sgr0`".to_owned()), |op| {
187188
expand(op.as_slice(), [], &mut Variables::new())
188189
});
189190
if s.is_ok() {

0 commit comments

Comments
 (0)