Dependency of qbsdiff
by the same author.
Noticed 2 patterns:
std::ptr::copy_nonoverlapping(&src_slice[i] as *const T, &mut dst_slice[j] as *mut T, n)
dst.slice[j..j+n].copy_from_slice(src_slice[i..i+n])
.std::ptr::copy(&s[i] as *const T, &mut s[j] as *mut T, n)
s.copy_within(i..i+n, j)
.slice::split_at_mut
and copy_from_slice
(resulting in a call to std::ptr::copy_nonoverlapping
)Should we request a clippy lint?
Fixes sent upstream: hucsmn/suffix_array#1
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4