You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Chapter 19.1 (Unsafe Rust), the line from listing 19-6 slice::from_raw_parts_mut(ptr.offset(mid as isize), len - mid)) should use ptr.add instead (beacause it asks for an usize, avoiding the conversion), just like the official implementation does.
Also, Clippy complains:
In Chapter 19.1 (Unsafe Rust), the line from listing 19-6
slice::from_raw_parts_mut(ptr.offset(mid as isize), len - mid))
should use ptr.add instead (beacause it asks for an usize, avoiding the conversion), just like the official implementation does.Also, Clippy complains:
The text was updated successfully, but these errors were encountered: