Commit 764efbd
committed
api: tweak the lifetime of
This was incredibly subtle and easy to miss. I actually didn't see any
warnings for this until I did `cargo publish` for the `1.12.0` release.
Not sure why.
I'll have to yank the `1.12.0` release because this is technically a
breaking change from the API published in `1.12.0`. Sigh. In particular,
in `1.12.0`, I assumed the inferred lifetime is tied to the borrow of
`Captures`, which is less than or equal to the lifetime of the haystack
`'h`.Captures::get_match
1 parent ee6aa55 commit 764efbd
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1681 | 1681 | | |
1682 | 1682 | | |
1683 | 1683 | | |
1684 | | - | |
| 1684 | + | |
1685 | 1685 | | |
1686 | 1686 | | |
1687 | 1687 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1692 | 1692 | | |
1693 | 1693 | | |
1694 | 1694 | | |
1695 | | - | |
| 1695 | + | |
1696 | 1696 | | |
1697 | 1697 | | |
1698 | 1698 | | |
| |||
0 commit comments