libterm: remove unnecessary to_string() calls

This commit is contained in:
Jorge Aparicio 2014-11-27 19:53:58 -05:00
parent 93e99b55f8
commit 00c7786690

View File

@ -102,10 +102,10 @@ fn test_get_dbpath_for_term() {
let p = get_dbpath_for_term(t).expect("no terminfo entry found");
p.as_str().unwrap().to_string()
};
assert!(x("screen") == "/usr/share/terminfo/s/screen".to_string());
assert!(x("screen") == "/usr/share/terminfo/s/screen");
assert!(get_dbpath_for_term("") == None);
setenv("TERMINFO_DIRS", ":");
assert!(x("screen") == "/usr/share/terminfo/s/screen".to_string());
assert!(x("screen") == "/usr/share/terminfo/s/screen");
unsetenv("TERMINFO_DIRS");
}