@@ -24,7 +24,7 @@ use move_core_types::{
24
24
account_address:: AccountAddress ,
25
25
function:: { ClosureMask , MoveClosure } ,
26
26
identifier:: { IdentStr , Identifier } ,
27
- language_storage:: { FunctionParamOrReturnTag , ModuleId , StructTag , TypeTag } ,
27
+ language_storage:: { ModuleId , StructTag , TypeTag } ,
28
28
transaction_argument:: { convert_txn_args, TransactionArgument } ,
29
29
u256,
30
30
value:: { MoveStruct , MoveTypeLayout , MoveValue } ,
@@ -457,20 +457,9 @@ impl<V: CompiledModuleView> MoveValueAnnotator<V> {
457
457
TypeTag :: U128 => FatType :: U128 ,
458
458
TypeTag :: Vector ( ty) => FatType :: Vector ( Box :: new ( self . resolve_type_impl ( ty, limit) ?) ) ,
459
459
TypeTag :: Function ( function_tag) => {
460
- let mut convert_tags = |tags : & [ FunctionParamOrReturnTag ] | {
460
+ let mut convert_tags = |tags : & [ TypeTag ] | {
461
461
tags. iter ( )
462
- . map ( |t| {
463
- use FunctionParamOrReturnTag :: * ;
464
- Ok ( match t {
465
- Reference ( t) => {
466
- FatType :: Reference ( Box :: new ( self . resolve_type_impl ( t, limit) ?) )
467
- } ,
468
- MutableReference ( t) => FatType :: MutableReference ( Box :: new (
469
- self . resolve_type_impl ( t, limit) ?,
470
- ) ) ,
471
- Value ( t) => self . resolve_type_impl ( t, limit) ?,
472
- } )
473
- } )
462
+ . map ( |t| self . resolve_type_impl ( t, limit) )
474
463
. collect :: < anyhow:: Result < Vec < _ > > > ( )
475
464
} ;
476
465
FatType :: Function ( Box :: new ( FatFunctionType {
0 commit comments