From 5c0d6e391a1df5e2078350773f2a0ba12de6fd5d Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Tue, 16 May 2023 16:42:16 -0400 Subject: [PATCH] webauthn3-proto: remove incomplete serialization code --- crates/webauthn3-proto/src/client.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/crates/webauthn3-proto/src/client.rs b/crates/webauthn3-proto/src/client.rs index 1cb9379..d2a7ee4 100644 --- a/crates/webauthn3-proto/src/client.rs +++ b/crates/webauthn3-proto/src/client.rs @@ -32,18 +32,3 @@ pub struct Data { /// > absence indicates that the client doesn’t support token binding. pub token_binding: Option, } - -#[cfg(feature = "serde")] -impl Serialize for Data { - fn serialize(&self, serializer: S) -> Result - where - S: serde::Serializer, - { - // Keys are: "type", "challenge", "origin", "topOrigin", "crossOrigin" - const LEN: usize = 5; - let mut map = serializer.serialize_map(Some(LEN))?; - - // map.serialize_entry("type", value) - todo!() - } -}