From 3e48c9f1ee977c44d52b5dbeb7fefb58ac20ed42 Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Sun, 27 Aug 2023 17:29:34 +0200 Subject: [PATCH] fix clippy lint --- matcher/src/matrix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matcher/src/matrix.rs b/matcher/src/matrix.rs index 4af4535..a91ed95 100644 --- a/matcher/src/matrix.rs +++ b/matcher/src/matrix.rs @@ -74,7 +74,7 @@ impl MatrixLayout { let base = ptr.as_ptr(); let haystack = base.add(self.haystack_off) as *mut C; let haystack = slice_from_raw_parts_mut(haystack, self.haystack_len); - let bonus = base.add(self.bonus_off) as *mut u8; + let bonus = base.add(self.bonus_off); let bonus = slice_from_raw_parts_mut(bonus, self.haystack_len); let rows = base.add(self.rows_off) as *mut u16; let rows = slice_from_raw_parts_mut(rows, self.needle_len);