Skip to content

Commit

Permalink
Drop unnecessary referencing
Browse files Browse the repository at this point in the history
  • Loading branch information
momvart committed Nov 16, 2024
1 parent 948d2e1 commit c6b1f8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/automaton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<'a, T: private::Sealed + ?Sized> private::Sealed for &'a T {}
/// // seen according to the automaton's match semantics. This returns an error
/// // if the given automaton does not support unanchored searches.
/// fn find<A: Automaton>(
/// aut: A,
/// aut: &A,
/// haystack: &[u8],
/// ) -> Result<Option<Match>, MatchError> {
/// let mut sid = aut.start_state(Anchored::No)?;
Expand Down Expand Up @@ -355,7 +355,7 @@ pub unsafe trait Automaton: private::Sealed {
&self,
input: &Input<'_>,
) -> Result<Option<Match>, MatchError> {
try_find_fwd(&self, input)
try_find_fwd(self, input)
}

/// Executes a overlapping search with this automaton using the given
Expand All @@ -369,7 +369,7 @@ pub unsafe trait Automaton: private::Sealed {
input: &Input<'_>,
state: &mut OverlappingState,
) -> Result<(), MatchError> {
try_find_overlapping_fwd(&self, input, state)
try_find_overlapping_fwd(self, input, state)
}

/// Returns an iterator of non-overlapping matches with this automaton
Expand Down Expand Up @@ -1557,7 +1557,7 @@ fn get_match<A: Automaton + ?Sized>(
/// overlapping is that of match and start states.)
pub(crate) fn fmt_state_indicator<A: Automaton>(
f: &mut core::fmt::Formatter<'_>,
aut: A,
aut: &A,
id: StateID,
) -> core::fmt::Result {
if aut.is_dead(id) {
Expand Down

0 comments on commit c6b1f8e

Please sign in to comment.