Skip to content

Commit 2fae9fa

Browse files
committed
---
yaml --- r: 124862 b: refs/heads/master c: dd3afb4 h: refs/heads/master v: v3
1 parent 2dc31d3 commit 2fae9fa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: cbd6799110b858505c271b8169e356c62e34b80a
2+
refs/heads/master: dd3afb42d1cc5eb11f2e024167aca0a6d6173b98
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 9fc8394d3bce22ab483f98842434c84c396212ae
55
refs/heads/try: ac70b438a8382389c9c9b59c66b14774bff46e10

trunk/src/grammar/verify.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ fn main() {
225225

226226
let args = std::os::args();
227227

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+
229231
let mut stdin = std::io::stdin();
230232
let mut antlr_tokens = stdin.lines().map(|l| parse_antlr_token(l.unwrap().as_slice().trim(), &token_map));
231233

0 commit comments

Comments
 (0)