Merge pull request #3841 from vDorst/fix-core-intrinsics-deprecated

embassy-usb: fix `core::intrinsics` deprecate warning in nightly.
This commit is contained in:
Dario Nieuwenhuis 2025-02-03 21:24:51 +00:00 committed by GitHub
commit f03dca3f96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,9 +14,8 @@
//! This is due to regex spaghetti: <https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-mainline-12.0.0_r84/core/res/res/values/config.xml#417>
//! and this nonsense in the linux kernel: <https://github.com/torvalds/linux/blob/c00c5e1d157bec0ef0b0b59aa5482eb8dc7e8e49/drivers/net/usb/usbnet.c#L1751-L1757>
use core::intrinsics::copy_nonoverlapping;
use core::mem::{size_of, MaybeUninit};
use core::ptr::addr_of;
use core::ptr::{addr_of, copy_nonoverlapping};
use crate::control::{self, InResponse, OutResponse, Recipient, Request, RequestType};
use crate::driver::{Driver, Endpoint, EndpointError, EndpointIn, EndpointOut};