into_encoded() for consistency (#685)

* into_encoded() for consistency

* clippy fix
This commit is contained in:
James Wilson
2022-10-10 15:30:35 +01:00
committed by GitHub
parent 95e6aa9dda
commit 353cdb8748
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -167,6 +167,7 @@ impl quote::ToTokens for TypeDefGen {
}
}
#[allow(clippy::large_enum_variant)]
#[derive(Debug)]
pub enum TypeDefGenKind {
Struct(CompositeDef),
+1 -1
View File
@@ -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.