rename signature_type to function_type, fix cargo warnings

This commit is contained in:
vms
2020-05-28 16:05:58 +03:00
parent 8b9d33c14c
commit c2f2a23c38
8 changed files with 23 additions and 23 deletions

View File

@ -190,7 +190,7 @@ where
fn to_bytes(&self, writer: &mut W) -> io::Result<()> {
self.namespace.to_bytes(writer)?;
self.name.to_bytes(writer)?;
(self.signature_type as u64).to_bytes(writer)?;
(self.function_type as u64).to_bytes(writer)?;
Ok(())
}
@ -556,7 +556,7 @@ mod tests {
Import {
namespace: "a",
name: "b",
signature_type: 0,
function_type: 0,
},
&[
0x01, // string of length 1
@ -594,7 +594,7 @@ mod tests {
imports: vec![Import {
namespace: "ab",
name: "c",
signature_type: 0,
function_type: 0,
}],
adapters: vec![Adapter {
function_type: 0,