1
0
mirror of https://github.com/fluencelabs/interface-types synced 2025-07-26 11:41:57 +00:00

feat(interface-types) Simplify code.

This commit is contained in:
Ivan Enderlin
2019-10-04 12:07:21 +02:00
parent 3c651cd146
commit 23c512d33c
2 changed files with 2 additions and 2 deletions
src/interpreter/instructions

@@ -17,7 +17,7 @@ executable_instruction!(
Some(inputs) => {
let input_types = inputs
.iter()
.map(|input| input.into())
.map(Into::into)
.collect::<Vec<InterfaceType>>();
if input_types != local_or_import.inputs() {

@@ -13,7 +13,7 @@ executable_instruction!(
Some(inputs) => {
let input_types = inputs
.iter()
.map(|input| input.into())
.map(Into::into)
.collect::<Vec<InterfaceType>>();
if input_types != export.inputs() {