about summary refs log tree commit diff
path: root/src/libterm
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2014-10-31 00:03:52 -0500
committerJorge Aparicio <japaricious@gmail.com>2014-11-01 19:56:07 -0500
commitfe256f81401e7af5fb3a3ec069427fd9c52073a9 (patch)
tree6ef164aedf102990948461ab89105984d53043d5 /src/libterm
parent423e17b9df16990411cd7afded2e09139c6c6d09 (diff)
downloadrust-fe256f81401e7af5fb3a3ec069427fd9c52073a9.tar.gz
rust-fe256f81401e7af5fb3a3ec069427fd9c52073a9.zip
Remove unnecessary allocations
Diffstat (limited to 'src/libterm')
-rw-r--r--src/libterm/terminfo/searcher.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libterm/terminfo/searcher.rs b/src/libterm/terminfo/searcher.rs
index a89afab505b..61ff88a2fa3 100644
--- a/src/libterm/terminfo/searcher.rs
+++ b/src/libterm/terminfo/searcher.rs
@@ -41,7 +41,7 @@ pub fn get_dbpath_for_term(term: &str) -> Option<Box<Path>> {
                     if i == "" {
                         dirs_to_search.push(Path::new("/usr/share/terminfo"));
                     } else {
-                        dirs_to_search.push(Path::new(i.to_string()));
+                        dirs_to_search.push(Path::new(i));
                     }
                 },
                 // Found nothing in TERMINFO_DIRS, use the default paths: