about summary refs log tree commit diff
path: root/src/libterm
diff options
context:
space:
mode:
authorAdolfo OchagavĂ­a <aochagavia92@gmail.com>2014-07-04 22:38:13 +0200
committerAdolfo OchagavĂ­a <aochagavia92@gmail.com>2014-07-15 20:34:16 +0200
commit584fbde5d1f9e0048592b44195263dfea0ee8231 (patch)
treea8ed3d1b187108d1793581b5b2b5ffceb514c744 /src/libterm
parentc6b82c7566a2e1da7d0f1697335b47c8c999720e (diff)
Fix errors
Diffstat (limited to 'src/libterm')
-rw-r--r--src/libterm/terminfo/parser/compiled.rs1
-rw-r--r--src/libterm/terminfo/searcher.rs4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/libterm/terminfo/parser/compiled.rs b/src/libterm/terminfo/parser/compiled.rs
index 09fe2ef29ef..94ed7fbbf30 100644
--- a/src/libterm/terminfo/parser/compiled.rs
+++ b/src/libterm/terminfo/parser/compiled.rs
@@ -14,7 +14,6 @@
 
 use std::collections::HashMap;
 use std::io;
-use std::str;
 use super::super::TermInfo;
 
 // These are the orders ncurses uses in its compiled format (as of 5.9). Not sure if portable.
diff --git a/src/libterm/terminfo/searcher.rs b/src/libterm/terminfo/searcher.rs
index dff67fc32db..7ad14d79754 100644
--- a/src/libterm/terminfo/searcher.rs
+++ b/src/libterm/terminfo/searcher.rs
@@ -14,7 +14,7 @@
 
 use std::io::File;
 use std::os::getenv;
-use std::{os, str};
+use std::os;
 
 /// Return path to database entry for `term`
 pub fn get_dbpath_for_term(term: &str) -> Option<Box<Path>> {
@@ -59,7 +59,7 @@ pub fn get_dbpath_for_term(term: &str) -> Option<Box<Path>> {
     // Look for the terminal in all of the search directories
     for p in dirs_to_search.iter() {
         if p.exists() {
-            let f = first_char.to_str();
+            let f = first_char.to_string();
             let newp = p.join_many([f.as_slice(), term]);
             if newp.exists() {
                 return Some(box newp);