Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace chameleon hidden field name
  • Loading branch information
ascjones committed Oct 12, 2021
commit c66ac9f56a489bd3896bea64c3b4f51195b91b74
4 changes: 2 additions & 2 deletions codegen/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ impl<'a> ModuleType<'a> {
if is_struct && !unused_params.is_empty() {
let phantom = Self::phantom_data(&unused_params);
fields_tokens.push(quote! {
pub __chameleon_unused_type_params: #phantom
pub __subxt_unused_type_params: #phantom
})
}

Expand Down Expand Up @@ -1206,7 +1206,7 @@ mod tests {
#[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)]
pub struct NamedFields<_0> {
pub b: u32,
pub __chameleon_unused_type_params: ::core::marker::PhantomData<_0>,
pub __subxt_unused_type_params: ::core::marker::PhantomData<_0>,
}
#[derive(Debug, Eq, PartialEq, ::codec::Encode, ::codec::Decode)]
pub struct UnnamedFields<_0, _1> (
Expand Down