mirror of
https://github.com/fluencelabs/interface-types
synced 2025-04-24 23:32:13 +00:00
feat(interface-types) Simplify code.
This commit is contained in:
parent
3c651cd146
commit
23c512d33c
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user