Skip to content

Commit

Permalink
Adjust example slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor committed Mar 20, 2024
1 parent 8ce8722 commit 3af5e13
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 3af5e13

Please sign in to comment.