]> git.lizzy.rs Git - rust.git/blobdiff - src/libterm/terminfo/mod.rs
std: Rename Show/String to Debug/Display
[rust.git] / src / libterm / terminfo / mod.rs
index d944d0362fbe50e481c57c3017b7d3120403d376..2ef0bca3785cbc43ba1d6b81b46abeb030125d20 100644 (file)
@@ -24,7 +24,7 @@
 
 
 /// A parsed terminfo database entry.
-#[deriving(Show)]
+#[derive(Show)]
 pub struct TermInfo {
     /// Names for the terminal
     pub names: Vec<String> ,
@@ -180,7 +180,7 @@ pub fn new(out: T) -> Option<Box<Terminal<T>+Send+'static>> {
             }
         };
 
-        let entry = open(term[]);
+        let entry = open(&term[]);
         if entry.is_err() {
             if os::getenv("MSYSCON").map_or(false, |s| {
                     "mintty.exe" == s
@@ -190,14 +190,14 @@ pub fn new(out: T) -> Option<Box<Terminal<T>+Send+'static>> {
                                                   ti: msys_terminfo(),
                                                   num_colors: 8} as Box<Terminal<T>+Send>);
             }
-            debug!("error finding terminfo entry: {}", entry.err().unwrap());
+            debug!("error finding terminfo entry: {:?}", entry.err().unwrap());
             return None;
         }
 
         let mut file = entry.unwrap();
         let ti = parse(&mut file, false);
         if ti.is_err() {
-            debug!("error parsing terminfo entry: {}", ti.unwrap_err());
+            debug!("error parsing terminfo entry: {:?}", ti.err().unwrap());
             return None;
         }