@@ -562,10 +562,10 @@ impl SequenceData {
562562 pub fn concat ( & mut self , epoch : & StacksEpochId , other_seq : SequenceData ) -> Result < ( ) > {
563563 match ( self , other_seq) {
564564 ( SequenceData :: List ( inner_data) , SequenceData :: List ( other_inner_data) ) => {
565- inner_data. append ( epoch, other_inner_data)
565+ inner_data. append ( epoch, other_inner_data) ? ;
566566 }
567567 ( SequenceData :: Buffer ( inner_data) , SequenceData :: Buffer ( ref mut other_inner_data) ) => {
568- inner_data. append ( other_inner_data)
568+ inner_data. append ( other_inner_data) ;
569569 }
570570 (
571571 SequenceData :: String ( CharType :: ASCII ( inner_data) ) ,
@@ -575,8 +575,8 @@ impl SequenceData {
575575 SequenceData :: String ( CharType :: UTF8 ( inner_data) ) ,
576576 SequenceData :: String ( CharType :: UTF8 ( ref mut other_inner_data) ) ,
577577 ) => inner_data. append ( other_inner_data) ,
578- _ => Err ( RuntimeErrorType :: BadTypeConstruction . into ( ) ) ,
579- } ? ;
578+ _ => return Err ( RuntimeErrorType :: BadTypeConstruction . into ( ) ) ,
579+ } ;
580580 Ok ( ( ) )
581581 }
582582
@@ -1242,9 +1242,8 @@ impl BuffData {
12421242 self . data . as_slice ( )
12431243 }
12441244
1245- fn append ( & mut self , other_seq : & mut BuffData ) -> Result < ( ) > {
1245+ fn append ( & mut self , other_seq : & mut BuffData ) {
12461246 self . data . append ( & mut other_seq. data ) ;
1247- Ok ( ( ) )
12481247 }
12491248
12501249 pub fn empty ( ) -> Self {
@@ -1281,9 +1280,8 @@ impl ListData {
12811280}
12821281
12831282impl ASCIIData {
1284- fn append ( & mut self , other_seq : & mut ASCIIData ) -> Result < ( ) > {
1283+ fn append ( & mut self , other_seq : & mut ASCIIData ) {
12851284 self . data . append ( & mut other_seq. data ) ;
1286- Ok ( ( ) )
12871285 }
12881286
12891287 pub fn len ( & self ) -> Result < BufferLength > {
@@ -1295,9 +1293,8 @@ impl ASCIIData {
12951293}
12961294
12971295impl UTF8Data {
1298- fn append ( & mut self , other_seq : & mut UTF8Data ) -> Result < ( ) > {
1296+ fn append ( & mut self , other_seq : & mut UTF8Data ) {
12991297 self . data . append ( & mut other_seq. data ) ;
1300- Ok ( ( ) )
13011298 }
13021299
13031300 pub fn len ( & self ) -> Result < BufferLength > {
@@ -1530,12 +1527,11 @@ impl TupleData {
15301527 fn new (
15311528 type_signature : TupleTypeSignature ,
15321529 data_map : BTreeMap < ClarityName , Value > ,
1533- ) -> Result < TupleData > {
1534- let t = TupleData {
1530+ ) -> TupleData {
1531+ TupleData {
15351532 type_signature,
15361533 data_map,
1537- } ;
1538- Ok ( t)
1534+ }
15391535 }
15401536
15411537 /// Return the number of fields in this tuple value
@@ -1565,7 +1561,7 @@ impl TupleData {
15651561 data_map. insert ( name, value) ;
15661562 }
15671563
1568- Self :: new ( TupleTypeSignature :: try_from ( type_map) ?, data_map)
1564+ Ok ( Self :: new ( TupleTypeSignature :: try_from ( type_map) ?, data_map) )
15691565 }
15701566
15711567 // TODO: add tests from mutation testing results #4834
@@ -1585,7 +1581,7 @@ impl TupleData {
15851581 }
15861582 data_map. insert ( name, value) ;
15871583 }
1588- Self :: new ( expected. clone ( ) , data_map)
1584+ Ok ( Self :: new ( expected. clone ( ) , data_map) )
15891585 }
15901586
15911587 pub fn get ( & self , name : & str ) -> Result < & Value > {
0 commit comments