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

View File

@ -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() {

View File

@ -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() {