Skip to content

Commit f03dca3

Browse files
authored
Merge pull request #3841 from vDorst/fix-core-intrinsics-deprecated
embassy-usb: fix `core::intrinsics` deprecate warning in nightly.
2 parents 113383b + d363401 commit f03dca3

File tree

1 file changed

+1
-2
lines changed
  • embassy-usb/src/class/cdc_ncm

1 file changed

+1
-2
lines changed

embassy-usb/src/class/cdc_ncm/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
//! 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>
1515
//! and this nonsense in the linux kernel: <https://github.com/torvalds/linux/blob/c00c5e1d157bec0ef0b0b59aa5482eb8dc7e8e49/drivers/net/usb/usbnet.c#L1751-L1757>
1616
17-
use core::intrinsics::copy_nonoverlapping;
1817
use core::mem::{size_of, MaybeUninit};
19-
use core::ptr::addr_of;
18+
use core::ptr::{addr_of, copy_nonoverlapping};
2019

2120
use crate::control::{self, InResponse, OutResponse, Recipient, Request, RequestType};
2221
use crate::driver::{Driver, Endpoint, EndpointError, EndpointIn, EndpointOut};

0 commit comments

Comments
 (0)