libterm: remove unnecessary to_string()
calls
This commit is contained in:
parent
93e99b55f8
commit
00c7786690
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user