File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
- refs/heads/try: 1ecdf3abc1cf08e76dbe309e1ee9255f899427f7
5
+ refs/heads/try: d38939c7e8ca67a3991949cb17bf052b840d1aa4
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
Original file line number Diff line number Diff line change @@ -185,13 +185,13 @@ impl<T: Reader> T : ReaderUtil {
185
185
}
186
186
187
187
fn read_line ( & self ) -> ~str {
188
- let mut bytes = ~[ ] ;
188
+ let mut line = ~"" ;
189
189
loop {
190
190
let ch = self . read_byte ( ) ;
191
191
if ch == -1 || ch == 10 { break ; }
192
- bytes . push ( ch as u8 ) ;
192
+ str :: push_char ( & mut line , ch as char ) ;
193
193
}
194
- str :: from_bytes ( bytes )
194
+ line
195
195
}
196
196
197
197
fn read_chars ( & self , n : uint ) -> ~[ char ] {
You can’t perform that action at this time.
0 commit comments