Skip to content

Commit

Permalink
Adjust example slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor committed Feb 20, 2024
1 parent c989099 commit 971de54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustler_tests/native/rustler_serde_test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ init! {

/// Implements the README example.
#[nif]
pub fn readme(SerdeTerm(animal): SerdeTerm<Animal>) -> SerdeTerm<Animal> {
pub fn readme(SerdeTerm(animal): SerdeTerm<Animal>) -> impl Encoder {
// println!("\n deserialized animal from README example: {:?}", animal);
SerdeTerm(animal)
}
Expand Down

0 comments on commit 971de54

Please sign in to comment.