We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7efdc93 commit 465b143Copy full SHA for 465b143
libwebauthn/src/transport/hid/device.rs
@@ -16,12 +16,14 @@ use crate::transport::error::{Error, TransportError};
16
use crate::transport::Device;
17
use crate::UxUpdate;
18
19
-#[derive(Debug)]
+#[derive(Debug, Clone)]
20
pub struct HidDevice {
21
pub backend: HidBackendDevice,
22
}
23
24
#[derive(Debug)]
25
+// SoloVirtualKey is not clone-able, but in test-mode we don't care
26
+#[cfg_attr(not(feature = "virtual-hid-device"), derive(Clone))]
27
pub enum HidBackendDevice {
28
HidApiDevice(DeviceInfo),
29
#[cfg(feature = "virtual-hid-device")]
0 commit comments