Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rossmacarthur committed Feb 20, 2024
1 parent 9bcccfe commit 6474223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile/search/ahocorasick/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ impl State {
// must always be longest since any subsequent match must be from a
// failure transition, and a failure transition by construction points
// to a proper suffix. A proper suffix is, by definition, smaller.
self.matches.get(0).map(|&p| p.len)
self.matches.first().map(|&p| p.len)
}
}

Expand Down

0 comments on commit 6474223

Please sign in to comment.