Skip to content

Commit

Permalink
codegen: Fix error message for NifTuple
Browse files Browse the repository at this point in the history
  • Loading branch information
evnu committed Oct 17, 2019
1 parent 5a0437c commit 84f3523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustler_codegen/src/tuple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub fn transcoder_decorator(ast: &syn::DeriveInput) -> TokenStream {
let struct_fields = ctx
.struct_fields
.as_ref()
.expect("NifStruct can only be used with structs");
.expect("NifTuple can only be used with structs");

let decoder = if ctx.decode() {
gen_decoder(&ctx, &struct_fields, false)
Expand Down

0 comments on commit 84f3523

Please sign in to comment.