File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: cbd6799110b858505c271b8169e356c62e34b80a
2
+ refs/heads/master: dd3afb42d1cc5eb11f2e024167aca0a6d6173b98
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 9fc8394d3bce22ab483f98842434c84c396212ae
5
5
refs/heads/try: ac70b438a8382389c9c9b59c66b14774bff46e10
Original file line number Diff line number Diff line change @@ -225,7 +225,9 @@ fn main() {
225
225
226
226
let args = std:: os:: args ( ) ;
227
227
228
- let token_map = parse_token_list ( File :: open ( & Path :: new ( args. get ( 2 ) . as_slice ( ) ) ) . unwrap ( ) . read_to_string ( ) . unwrap ( ) . as_slice ( ) ) ;
228
+ let mut token_file = File :: open ( & Path :: new ( args. get ( 2 ) . as_slice ( ) ) ) ;
229
+ let token_map = parse_token_list ( token_file. read_to_string ( ) . unwrap ( ) . as_slice ( ) ) ;
230
+
229
231
let mut stdin = std:: io:: stdin ( ) ;
230
232
let mut antlr_tokens = stdin. lines ( ) . map ( |l| parse_antlr_token ( l. unwrap ( ) . as_slice ( ) . trim ( ) , & token_map) ) ;
231
233
You can’t perform that action at this time.
0 commit comments