Skip to content

Commit 505463f

Browse files
committed
Use portable-atomic instead of deprecated atomic-polyfill
1 parent 8f4ace5 commit 505463f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ authors = ["Matti Virkkunen <[email protected]>"]
1010
repository = "https://github.com/mvirkkunen/usb-device"
1111

1212
[dependencies]
13-
atomic-polyfill = "1.0.2"
1413
defmt = { version = "0.3", optional = true }
14+
portable-atomic = { version = "1.2.0", default-features = false }
1515

1616
[dev-dependencies]
1717
rusb = "0.9.1"

src/bus.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ use crate::endpoint::{
33
IsochronousUsageType,
44
};
55
use crate::{Result, UsbDirection, UsbError};
6-
use atomic_polyfill::{AtomicPtr, Ordering};
76
use core::cell::RefCell;
87
use core::mem;
98
use core::ptr;
9+
use portable_atomic::{AtomicPtr, Ordering};
1010

1111
/// A trait for device-specific USB peripherals. Implement this to add support for a new hardware
1212
/// platform.

src/endpoint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::bus::UsbBus;
22
use crate::{Result, UsbDirection};
3-
use atomic_polyfill::{AtomicPtr, Ordering};
43
use core::marker::PhantomData;
4+
use portable_atomic::{AtomicPtr, Ordering};
55

66
/// Trait for endpoint type markers.
77
pub trait EndpointDirection {

0 commit comments

Comments
 (0)