From 64742233bb345e3ca5f69c2ab9cab144a8e7ee70 Mon Sep 17 00:00:00 2001 From: Ross MacArthur Date: Tue, 20 Feb 2024 10:51:33 +0200 Subject: [PATCH] Fix clippy warning --- src/compile/search/ahocorasick/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile/search/ahocorasick/build.rs b/src/compile/search/ahocorasick/build.rs index 0ef9106..2afffcc 100644 --- a/src/compile/search/ahocorasick/build.rs +++ b/src/compile/search/ahocorasick/build.rs @@ -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) } }