diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-11-12 15:51:51 -0800 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-11-17 11:26:48 -0800 |
| commit | 7213de1c49e448c7c6ad2d30dc3e6b3a13e090df (patch) | |
| tree | 9133e9f7b6f954432eddd947cb74248a1751ea36 /src/libregex | |
| parent | 80a2867ea736007397aa2fbaa0e4c539c80e162c (diff) | |
| download | rust-7213de1c49e448c7c6ad2d30dc3e6b3a13e090df.tar.gz rust-7213de1c49e448c7c6ad2d30dc3e6b3a13e090df.zip | |
Fallout from deprecation
This commit handles the fallout from deprecating `_with` and `_equiv` methods.
Diffstat (limited to 'src/libregex')
| -rw-r--r-- | src/libregex/re.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libregex/re.rs b/src/libregex/re.rs index dbdb2718744..e1e2abcb1b7 100644 --- a/src/libregex/re.rs +++ b/src/libregex/re.rs @@ -726,7 +726,7 @@ impl<'t> Captures<'t> { match self.named { None => "", Some(ref h) => { - match h.find_equiv(name) { + match h.get(name) { None => "", Some(i) => self.at(*i), } |
