Skip to content

Commit 2cc7b9a

Browse files
committed
---
yaml --- r: 126701 b: refs/heads/snap-stage3 c: dd3afb4 h: refs/heads/master i: 126699: 0ac7413 v: v3
1 parent 1050896 commit 2cc7b9a

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,7 +1,7 @@
11
---
22
refs/heads/master: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: cbd6799110b858505c271b8169e356c62e34b80a
4+
refs/heads/snap-stage3: dd3afb42d1cc5eb11f2e024167aca0a6d6173b98
55
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)