From 8ce872269ce3dee162be4087d1d1cf5483426dec Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Mon, 22 Jan 2024 19:00:09 +0100 Subject: [PATCH] Drop failed attempt --- rustler/src/serde/mod.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/rustler/src/serde/mod.rs b/rustler/src/serde/mod.rs index dc33c151..1de3943e 100644 --- a/rustler/src/serde/mod.rs +++ b/rustler/src/serde/mod.rs @@ -10,12 +10,6 @@ pub use ser::{to_term, Serializer}; use crate::{Decoder, Encoder, Env, NifResult, Term}; -/* impl crate::Encoder for T where T: serde::Serialize { - fn encode<'a>(&self, env: crate::Env<'a>) -> crate::Term<'a> { - to_term(env, self).unwrap() - } -} */ - pub struct SerdeTerm(pub T); impl Encoder for SerdeTerm {