X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibregex%2Fre.rs;h=e70491a785c370b27ecb643153559eb1a3ece86b;hb=da5c61d469f1ace01728d465c940577ce886b28a;hp=98f7ce54e38d89a5429ab87a3174b93fb43a967f;hpb=215f6934009a8e74e58441359482d8654c281009;p=rust.git diff --git a/src/libregex/re.rs b/src/libregex/re.rs index 98f7ce54e38..e70491a785c 100644 --- a/src/libregex/re.rs +++ b/src/libregex/re.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +pub use self::NamesIter::*; +pub use self::Regex::*; + use std::collections::HashMap; use std::fmt; use std::str::{MaybeOwned, Owned, Slice}; @@ -723,7 +726,7 @@ pub fn name(&self, name: &str) -> &'t str { match self.named { None => "", Some(ref h) => { - match h.find_equiv(name) { + match h.get(name) { None => "", Some(i) => self.at(*i), }