mirror of
https://github.com/solaeus/nucleo.git
synced 2024-12-22 09:57:49 +00:00
fix clippy lint
This commit is contained in:
parent
648dec1ceb
commit
3e48c9f1ee
@ -74,7 +74,7 @@ impl<C: Char> MatrixLayout<C> {
|
|||||||
let base = ptr.as_ptr();
|
let base = ptr.as_ptr();
|
||||||
let haystack = base.add(self.haystack_off) as *mut C;
|
let haystack = base.add(self.haystack_off) as *mut C;
|
||||||
let haystack = slice_from_raw_parts_mut(haystack, self.haystack_len);
|
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 bonus = slice_from_raw_parts_mut(bonus, self.haystack_len);
|
||||||
let rows = base.add(self.rows_off) as *mut u16;
|
let rows = base.add(self.rows_off) as *mut u16;
|
||||||
let rows = slice_from_raw_parts_mut(rows, self.needle_len);
|
let rows = slice_from_raw_parts_mut(rows, self.needle_len);
|
||||||
|
Loading…
Reference in New Issue
Block a user