`manual_memcpy` fix by Jarcho · Pull Request #8226 · rust-lang/rust-clippy · Git...

 1 year ago
source link: https://github.com/rust-lang/rust-clippy/pull/8226
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link


Jarcho commented 15 days ago

fixes #8160

Ideally this would work with VecDeque, but the current interface is unsuitable for it. At a minimum something like range_as_slices would be needed.

changelog: Don't lint manual_memcpy on VecDeque
changelog: Suggest copy_from_slice for manual_memcpy when applicable

About Joyk

Aggregate valuable and interesting links.
Joyk means Joy of geeK