Skip to content

Commit

Permalink
Drop failed attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor committed Mar 20, 2024
1 parent b79e6a1 commit 8ce8722
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions rustler/src/serde/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ pub use ser::{to_term, Serializer};

use crate::{Decoder, Encoder, Env, NifResult, Term};

/* impl<T: ?Sized> 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<T>(pub T);

impl<T: serde::Serialize> Encoder for SerdeTerm<T> {
Expand Down

0 comments on commit 8ce8722

Please sign in to comment.