Skip to content

Commit 2d6ca17

Browse files
Merge #3
3: Don't require `UsbPeripheral` to be `Sync` r=Dirbaio a=jonas-schievink It's stored in a `Mutex`, which turns `Send` data `Sync`, so this trait bound shouldn't be required. Co-authored-by: Jonas Schievink <[email protected]>
2 parents eabb9bc + 7238633 commit 2d6ca17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub use usbd::Usbd;
1111
/// A trait for device-specific USB peripherals. Implement this to add support for a new hardware
1212
/// platform. Peripherals that have this trait must have the same register block as NRF52 USBD
1313
/// peripherals.
14-
pub unsafe trait UsbPeripheral: Send + Sync {
14+
pub unsafe trait UsbPeripheral: Send {
1515
/// Pointer to the register block
1616
const REGISTERS: *const ();
1717
}

0 commit comments

Comments
 (0)