From 7db826dc7880e35d7885135040690179eeee608e Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Sat, 20 May 2023 21:35:27 -0400 Subject: [PATCH] ctap2-proto: derive serde traits for authenticator::reset::Error --- crates/ctap2-proto/src/authenticator/reset/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/ctap2-proto/src/authenticator/reset/mod.rs b/crates/ctap2-proto/src/authenticator/reset/mod.rs index 4799666..8d52928 100644 --- a/crates/ctap2-proto/src/authenticator/reset/mod.rs +++ b/crates/ctap2-proto/src/authenticator/reset/mod.rs @@ -1,4 +1,9 @@ +#[cfg(feature = "serde")] +use serde::{Deserialize, Serialize}; + /// Possible errors for the [`Ctap2Device::reset`] command. +#[derive(Debug)] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub enum Error { /// Returned if the `reset` operation is disabled for the transport used or /// if user precense is explicitly denied.