Skip to content

Commit e9a5cd9

Browse files
committed
Use unwrap() instead of expect()
1 parent 4bfdc32 commit e9a5cd9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ir/annotations.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ impl Annotations {
153153
}
154154

155155
for i in 0..comment.num_children() {
156-
let child = &comment.get_child(i).expect("index higher than number of children");
157-
self.parse(child, matched);
156+
self.parse(&comment.get_child(i).unwrap(), matched);
158157
}
159158
}
160159
}

0 commit comments

Comments
 (0)