about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2014-12-09 12:12:12 -0500
committerJorge Aparicio <japaricious@gmail.com>2014-12-13 20:04:40 -0500
commit4fd6a99851509cffbeeb7e4275dc35702e632c33 (patch)
tree4bc06eaed78c3c0251ac2b484c50b5fd84a4bcb3
parentfe48a65aaa8e8c218b42ccd67a91c903935ac9e5 (diff)
downloadrust-4fd6a99851509cffbeeb7e4275dc35702e632c33.tar.gz
rust-4fd6a99851509cffbeeb7e4275dc35702e632c33.zip
libregex: use tuple indexing
-rw-r--r--src/libregex/parse.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libregex/parse.rs b/src/libregex/parse.rs
index ccbd53c4f2a..f9ae4d2591a 100644
--- a/src/libregex/parse.rs
+++ b/src/libregex/parse.rs
@@ -1031,7 +1031,7 @@ fn is_valid_cap(c: char) -> bool {
 
 fn find_class(classes: NamedClasses, name: &str) -> Option<Vec<(char, char)>> {
     match classes.binary_search(|&(s, _)| s.cmp(name)) {
-        BinarySearchResult::Found(i) => Some(classes[i].val1().to_vec()),
+        BinarySearchResult::Found(i) => Some(classes[i].1.to_vec()),
         BinarySearchResult::NotFound(_) => None,
     }
 }