Permalink
Browse files

more cleanups

  • Loading branch information...
1 parent 660a905 commit 543ad94ccaf6e4d521652613e12fa50c5c0ad321 @doy committed Apr 2, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/term.rs
View
@@ -334,7 +334,7 @@ impl Drop for Writer {
}
struct Reader {
- priv escapes: ~Trie<Keypress>,
+ priv escapes: Trie<Keypress>,
priv buf: ~str,
priv cleanup: bool,
}
@@ -417,8 +417,8 @@ impl Drop for Reader {
}
// XXX this whole thing needs to be able to deal with caps that don't exist
-fn build_escapes_trie () -> ~Trie<Keypress> {
- let mut trie = ~Trie();
+fn build_escapes_trie () -> Trie<Keypress> {
+ let mut trie = Trie();
trie.insert(escape("kbs"), KeyBackspace);
trie.insert(escape("cr"), KeyReturn);

0 comments on commit 543ad94

Please sign in to comment.