890: Implement UsbSupply for a reference of SignalledSupply r=Dirbaio a=matoushybl



Co-authored-by: Matous Hybl <hyblmatous@gmail.com>
This commit is contained in:
bors[bot]
2022-08-02 20:29:29 +00:00
committed by GitHub

View File

@ -144,7 +144,7 @@ impl SignalledSupply {
}
}
impl UsbSupply for SignalledSupply {
impl UsbSupply for &SignalledSupply {
fn is_usb_detected(&self) -> bool {
self.usb_detected.load(Ordering::Relaxed)
}