Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions regex-automata/src/nfa/thompson/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ impl Config {
/// # if cfg!(miri) { return Ok(()); } // miri takes too long
/// use regex_automata::nfa::thompson::NFA;
///
/// // 400KB isn't enough!
/// // 300KB isn't enough!
/// NFA::compiler()
/// .configure(NFA::config().nfa_size_limit(Some(400_000)))
/// .configure(NFA::config().nfa_size_limit(Some(300_000)))
/// .build(r"\w{20}")
/// .unwrap_err();
///
Expand Down
8 changes: 4 additions & 4 deletions regex-automata/src/util/alphabet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,15 +469,15 @@ impl ByteClasses {
/// # Ok::<(), Box<dyn std::error::Error>>(())
/// ```
#[inline]
pub fn elements(&self, class: Unit) -> ByteClassElements {
pub fn elements(&self, class: Unit) -> ByteClassElements<'_> {
ByteClassElements { classes: self, class, byte: 0 }
}

/// Returns an iterator of byte ranges in the given equivalence class.
///
/// That is, a sequence of contiguous ranges are returned. Typically, every
/// class maps to a single contiguous range.
fn element_ranges(&self, class: Unit) -> ByteClassElementRanges {
fn element_ranges(&self, class: Unit) -> ByteClassElementRanges<'_> {
ByteClassElementRanges { elements: self.elements(class), range: None }
}
}
Expand Down Expand Up @@ -786,12 +786,12 @@ impl ByteSet {
}

/// Returns an iterator over all bytes in this set.
pub(crate) fn iter(&self) -> ByteSetIter {
pub(crate) fn iter(&self) -> ByteSetIter<'_> {
ByteSetIter { set: self, b: 0 }
}

/// Returns an iterator over all contiguous ranges of bytes in this set.
pub(crate) fn iter_ranges(&self) -> ByteSetRangeIter {
pub(crate) fn iter_ranges(&self) -> ByteSetRangeIter<'_> {
ByteSetRangeIter { set: self, b: 0 }
}

Expand Down
2 changes: 1 addition & 1 deletion regex-test/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl RegexTests {
/// loaded.
///
/// This is useful to pass to [`TestRunner::test_iter`].
pub fn iter(&self) -> RegexTestsIter {
pub fn iter(&self) -> RegexTestsIter<'_> {
RegexTestsIter(self.tests.iter())
}
}
Expand Down
Loading