Skip to content

Commit 4fd6a99

Browse files
author
Jorge Aparicio
committed
libregex: use tuple indexing
1 parent fe48a65 commit 4fd6a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libregex/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ fn is_valid_cap(c: char) -> bool {
10311031

10321032
fn find_class(classes: NamedClasses, name: &str) -> Option<Vec<(char, char)>> {
10331033
match classes.binary_search(|&(s, _)| s.cmp(name)) {
1034-
BinarySearchResult::Found(i) => Some(classes[i].val1().to_vec()),
1034+
BinarySearchResult::Found(i) => Some(classes[i].1.to_vec()),
10351035
BinarySearchResult::NotFound(_) => None,
10361036
}
10371037
}

0 commit comments

Comments
 (0)