diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-05-19 17:23:26 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-05-22 14:42:02 -0700 |
| commit | 5633d4641f7d63805e3c12c899f8401410bd825f (patch) | |
| tree | f391ab3aedba4112c3bc36b796eee62d1e850fa4 /src/libterm | |
| parent | a9dd903d79b053eb85302572e53717ad865c813d (diff) | |
| download | rust-5633d4641f7d63805e3c12c899f8401410bd825f.tar.gz rust-5633d4641f7d63805e3c12c899f8401410bd825f.zip | |
libstd: Remove all uses of `~str` from `libstd`
Diffstat (limited to 'src/libterm')
| -rw-r--r-- | src/libterm/terminfo/parser/compiled.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libterm/terminfo/parser/compiled.rs b/src/libterm/terminfo/parser/compiled.rs index 5a1c8ea02e2..687e27f4282 100644 --- a/src/libterm/terminfo/parser/compiled.rs +++ b/src/libterm/terminfo/parser/compiled.rs @@ -221,7 +221,8 @@ pub fn parse(file: &mut io::Reader, longnames: bool) None => return Err("input not utf-8".to_strbuf()), }; - let term_names: Vec<StrBuf> = names_str.split('|') + let term_names: Vec<StrBuf> = names_str.as_slice() + .split('|') .map(|s| s.to_strbuf()) .collect(); |
