File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1146,6 +1146,8 @@ mod option_tonlib_address_list {
11461146}
11471147
11481148mod tonlib_address_list {
1149+ use tycho_types:: models:: StdAddrFormat ;
1150+
11491151 use super :: * ;
11501152
11511153 pub fn deserialize < ' de , D > ( deserializer : D ) -> Result < Vec < StdAddr > , D :: Error >
@@ -1170,6 +1172,15 @@ mod tonlib_address_list {
11701172 f. write_str ( "address list of at most 1024 items" )
11711173 }
11721174
1175+ fn visit_str < E > ( self , v : & str ) -> Result < Self :: Value , E >
1176+ where
1177+ E : serde:: de:: Error ,
1178+ {
1179+ StdAddr :: from_str_ext ( v, StdAddrFormat :: any ( ) )
1180+ . map ( |( addr, _) | vec ! [ addr] )
1181+ . map_err ( E :: custom)
1182+ }
1183+
11731184 fn visit_seq < A > ( self , mut seq : A ) -> Result < Self :: Value , A :: Error >
11741185 where
11751186 A : serde:: de:: SeqAccess < ' de > ,
You can’t perform that action at this time.
0 commit comments