From e4cfbf96ac81fe17052c3d91f32a92be2b507368 Mon Sep 17 00:00:00 2001 From: Matous Hybl Date: Tue, 2 Aug 2022 21:49:10 +0200 Subject: [PATCH] Implement UsbSupply for a reference of SignalledSupply --- embassy-nrf/src/usb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-nrf/src/usb.rs b/embassy-nrf/src/usb.rs index 9b6e6e83..bfd48775 100644 --- a/embassy-nrf/src/usb.rs +++ b/embassy-nrf/src/usb.rs @@ -142,7 +142,7 @@ impl SignalledSupply { } } -impl UsbSupply for SignalledSupply { +impl UsbSupply for &SignalledSupply { fn is_usb_detected(&self) -> bool { self.usb_detected.load(Ordering::Relaxed) }