Skip to content

Commit

Permalink
into_encoded() for consistency (#685)
Browse files Browse the repository at this point in the history
* into_encoded() for consistency

* clippy fix
  • Loading branch information
jsdw authored Oct 10, 2022
1 parent 95e6aa9 commit 353cdb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions codegen/src/types/type_def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ impl quote::ToTokens for TypeDefGen {
}
}

#[allow(clippy::large_enum_variant)]
#[derive(Debug)]
pub enum TypeDefGenKind {
Struct(CompositeDef),
Expand Down
2 changes: 1 addition & 1 deletion subxt/src/dynamic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8> {
pub fn into_encoded(self) -> Vec<u8> {
self.scale_bytes
}
/// Return the SCALE encoded bytes handed back from the node without taking ownership of them.
Expand Down

0 comments on commit 353cdb8

Please sign in to comment.