diff --git a/codegen/src/types/type_def.rs b/codegen/src/types/type_def.rs index 3ca025cf00..2d8f0a8e6b 100644 --- a/codegen/src/types/type_def.rs +++ b/codegen/src/types/type_def.rs @@ -167,6 +167,7 @@ impl quote::ToTokens for TypeDefGen { } } +#[allow(clippy::large_enum_variant)] #[derive(Debug)] pub enum TypeDefGenKind { Struct(CompositeDef), diff --git a/subxt/src/dynamic.rs b/subxt/src/dynamic.rs index db42ba7f41..d9650805bc 100644 --- a/subxt/src/dynamic.rs +++ b/subxt/src/dynamic.rs @@ -63,7 +63,7 @@ impl DecodeWithMetadata for DecodedValueThunk { impl DecodedValueThunk { /// Return the SCALE encoded bytes handed back from the node. - pub fn to_encoded(self) -> Vec { + pub fn into_encoded(self) -> Vec { self.scale_bytes } /// Return the SCALE encoded bytes handed back from the node without taking ownership of them.