@@ -26,6 +26,7 @@ use core::future::Future;
26
26
27
27
type IotaAddressRaw = [ u8 ; IOTA_ADDRESS_LENGTH ] ;
28
28
29
+ #[ expect( dead_code) ]
29
30
pub struct IotaPubKeyAddress ( ledger_device_sdk:: ecc:: ECPublicKey < 65 , 'E' > , IotaAddressRaw ) ;
30
31
31
32
impl Address < IotaPubKeyAddress , ledger_device_sdk:: ecc:: ECPublicKey < 65 , 'E' > >
@@ -51,8 +52,7 @@ impl core::fmt::Display for IotaPubKeyAddress {
51
52
}
52
53
}
53
54
54
- pub type BipParserImplT =
55
- impl AsyncParser < Bip32Key , ByteStream > + HasOutput < Bip32Key , Output = ArrayVec < u32 , 10 > > ;
55
+ pub type BipParserImplT = impl AsyncParser < Bip32Key , ByteStream , Output = ArrayVec < u32 , 10 > > ;
56
56
pub const BIP_PATH_PARSER : BipParserImplT = SubInterp ( DefaultInterp ) ;
57
57
58
58
// Need a path of length 5, as make_bip32_path panics with smaller paths
@@ -119,7 +119,10 @@ impl HasOutput<CallArgSchema> for DefaultInterp {
119
119
}
120
120
121
121
impl < BS : Clone + Readable > AsyncParser < CallArgSchema , BS > for DefaultInterp {
122
- type State < ' c > = impl Future < Output = Self :: Output > + ' c where BS : ' c ;
122
+ type State < ' c >
123
+ = impl Future < Output = Self :: Output > + ' c
124
+ where
125
+ BS : ' c ;
123
126
fn parse < ' a : ' c , ' b : ' c , ' c > ( & ' b self , input : & ' a mut BS ) -> Self :: State < ' c > {
124
127
async move {
125
128
let enum_variant =
@@ -210,7 +213,10 @@ impl HasOutput<CommandSchema> for DefaultInterp {
210
213
}
211
214
212
215
impl < BS : Clone + Readable > AsyncParser < CommandSchema , BS > for DefaultInterp {
213
- type State < ' c > = impl Future < Output = Self :: Output > + ' c where BS : ' c ;
216
+ type State < ' c >
217
+ = impl Future < Output = Self :: Output > + ' c
218
+ where
219
+ BS : ' c ;
214
220
fn parse < ' a : ' c , ' b : ' c , ' c > ( & ' b self , input : & ' a mut BS ) -> Self :: State < ' c > {
215
221
async move {
216
222
let enum_variant =
@@ -270,7 +276,10 @@ impl HasOutput<ArgumentSchema> for DefaultInterp {
270
276
}
271
277
272
278
impl < BS : Clone + Readable > AsyncParser < ArgumentSchema , BS > for DefaultInterp {
273
- type State < ' c > = impl Future < Output = Self :: Output > + ' c where BS : ' c ;
279
+ type State < ' c >
280
+ = impl Future < Output = Self :: Output > + ' c
281
+ where
282
+ BS : ' c ;
274
283
fn parse < ' a : ' c , ' b : ' c , ' c > ( & ' b self , input : & ' a mut BS ) -> Self :: State < ' c > {
275
284
async move {
276
285
let enum_variant =
@@ -325,7 +334,10 @@ impl<const PROMPT: bool> HasOutput<ProgrammableTransaction<PROMPT>>
325
334
impl < BS : Clone + Readable , const PROMPT : bool > AsyncParser < ProgrammableTransaction < PROMPT > , BS >
326
335
for ProgrammableTransaction < PROMPT >
327
336
{
328
- type State < ' c > = impl Future < Output = Self :: Output > + ' c where BS : ' c ;
337
+ type State < ' c >
338
+ = impl Future < Output = Self :: Output > + ' c
339
+ where
340
+ BS : ' c ;
329
341
fn parse < ' a : ' c , ' b : ' c , ' c > ( & ' b self , input : & ' a mut BS ) -> Self :: State < ' c > {
330
342
async move {
331
343
let mut recipient = None ;
@@ -522,7 +534,10 @@ impl<const PROMPT: bool> HasOutput<TransactionKind<PROMPT>> for TransactionKind<
522
534
impl < BS : Clone + Readable , const PROMPT : bool > AsyncParser < TransactionKind < PROMPT > , BS >
523
535
for TransactionKind < PROMPT >
524
536
{
525
- type State < ' c > = impl Future < Output = Self :: Output > + ' c where BS : ' c ;
537
+ type State < ' c >
538
+ = impl Future < Output = Self :: Output > + ' c
539
+ where
540
+ BS : ' c ;
526
541
fn parse < ' a : ' c , ' b : ' c , ' c > ( & ' b self , input : & ' a mut BS ) -> Self :: State < ' c > {
527
542
async move {
528
543
let enum_variant =
@@ -578,7 +593,10 @@ impl HasOutput<TransactionExpiration> for DefaultInterp {
578
593
}
579
594
580
595
impl < BS : Clone + Readable > AsyncParser < TransactionExpiration , BS > for DefaultInterp {
581
- type State < ' c > = impl Future < Output = Self :: Output > + ' c where BS : ' c ;
596
+ type State < ' c >
597
+ = impl Future < Output = Self :: Output > + ' c
598
+ where
599
+ BS : ' c ;
582
600
fn parse < ' a : ' c , ' b : ' c , ' c > ( & ' b self , input : & ' a mut BS ) -> Self :: State < ' c > {
583
601
async move {
584
602
let enum_variant =
@@ -605,7 +623,7 @@ impl<BS: Clone + Readable> AsyncParser<TransactionExpiration, BS> for DefaultInt
605
623
}
606
624
607
625
const fn gas_data_parser < BS : Clone + Readable , const PROMPT : bool > (
608
- ) -> impl AsyncParser < GasData < PROMPT > , BS > + HasOutput < GasData < PROMPT > , Output = ( ) > {
626
+ ) -> impl AsyncParser < GasData < PROMPT > , BS , Output = ( ) > {
609
627
Action (
610
628
(
611
629
SubInterp ( object_ref_parser ( ) ) ,
@@ -630,22 +648,19 @@ const fn gas_data_parser<BS: Clone + Readable, const PROMPT: bool>(
630
648
)
631
649
}
632
650
633
- const fn object_ref_parser < BS : Readable > (
634
- ) -> impl AsyncParser < ObjectRef , BS > + HasOutput < ObjectRef , Output = ( ) > {
651
+ const fn object_ref_parser < BS : Readable > ( ) -> impl AsyncParser < ObjectRef , BS , Output = ( ) > {
635
652
Action ( ( DefaultInterp , DefaultInterp , DefaultInterp ) , |_| Some ( ( ) ) )
636
653
}
637
654
638
- const fn intent_parser < BS : Readable > (
639
- ) -> impl AsyncParser < Intent , BS > + HasOutput < Intent , Output = ( ) > {
655
+ const fn intent_parser < BS : Readable > ( ) -> impl AsyncParser < Intent , BS , Output = ( ) > {
640
656
Action ( ( DefaultInterp , DefaultInterp , DefaultInterp ) , |_| {
641
657
trace ! ( "Intent Ok" ) ;
642
658
Some ( ( ) )
643
659
} )
644
660
}
645
661
646
662
const fn transaction_data_v1_parser < BS : Clone + Readable , const PROMPT : bool > (
647
- ) -> impl AsyncParser < TransactionDataV1 < PROMPT > , BS > + HasOutput < TransactionDataV1 < PROMPT > , Output = ( ) >
648
- {
663
+ ) -> impl AsyncParser < TransactionDataV1 < PROMPT > , BS , Output = ( ) > {
649
664
Action (
650
665
(
651
666
TransactionKind :: < PROMPT > ,
@@ -664,7 +679,10 @@ impl<const PROMPT: bool> HasOutput<TransactionData<PROMPT>> for TransactionData<
664
679
impl < BS : Clone + Readable , const PROMPT : bool > AsyncParser < TransactionData < PROMPT > , BS >
665
680
for TransactionData < PROMPT >
666
681
{
667
- type State < ' c > = impl Future < Output = Self :: Output > + ' c where BS : ' c ;
682
+ type State < ' c >
683
+ = impl Future < Output = Self :: Output > + ' c
684
+ where
685
+ BS : ' c ;
668
686
fn parse < ' a : ' c , ' b : ' c , ' c > ( & ' b self , input : & ' a mut BS ) -> Self :: State < ' c > {
669
687
async move {
670
688
let enum_variant =
@@ -688,7 +706,7 @@ impl<BS: Clone + Readable, const PROMPT: bool> AsyncParser<TransactionData<PROMP
688
706
}
689
707
690
708
const fn tx_parser < BS : Clone + Readable , const PROMPT : bool > (
691
- ) -> impl AsyncParser < IntentMessage < PROMPT > , BS > + HasOutput < IntentMessage < PROMPT > , Output = ( ) > {
709
+ ) -> impl AsyncParser < IntentMessage < PROMPT > , BS , Output = ( ) > {
692
710
Action ( ( intent_parser ( ) , TransactionData :: < PROMPT > ) , |_| Some ( ( ) ) )
693
711
}
694
712
0 commit comments