Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Bärenz committed Nov 9, 2023
1 parent 7cbfdd2 commit fba9872
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rustler_codegen/src/encode_decode_templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@ pub(crate) fn decoder(ctx: &Context, inner: TokenStream) -> TokenStream {
let where_clause = impl_generics.make_where_clause();

for lifetime in lifetimes {
let mut puncated = syn::punctuated::Punctuated::new();
puncated.push(lifetime.clone());
let mut punctuated = syn::punctuated::Punctuated::new();
punctuated.push(lifetime.clone());
let predicate = syn::PredicateLifetime {
lifetime: decode_lifetime.clone(),
colon_token: syn::token::Colon {
spans: [Span::call_site()],
},
bounds: puncated,
bounds: punctuated,
};
where_clause.predicates.push(predicate.into());

let mut puncated = syn::punctuated::Punctuated::new();
puncated.push(decode_lifetime.clone());
let mut punctuated = syn::punctuated::Punctuated::new();
punctuated.push(decode_lifetime.clone());
let predicate = syn::PredicateLifetime {
lifetime: lifetime.clone(),
colon_token: syn::token::Colon {
spans: [Span::call_site()],
},
bounds: puncated,
bounds: punctuated,
};
where_clause.predicates.push(predicate.into());
}
Expand Down

0 comments on commit fba9872

Please sign in to comment.