@@ -560,10 +560,10 @@ impl SequenceData {
560560 pub fn concat ( & mut self , epoch : & StacksEpochId , other_seq : SequenceData ) -> Result < ( ) > {
561561 match ( self , other_seq) {
562562 ( SequenceData :: List ( inner_data) , SequenceData :: List ( other_inner_data) ) => {
563- inner_data. append ( epoch, other_inner_data)
563+ inner_data. append ( epoch, other_inner_data) ? ;
564564 }
565565 ( SequenceData :: Buffer ( inner_data) , SequenceData :: Buffer ( ref mut other_inner_data) ) => {
566- inner_data. append ( other_inner_data)
566+ inner_data. append ( other_inner_data) ;
567567 }
568568 (
569569 SequenceData :: String ( CharType :: ASCII ( inner_data) ) ,
@@ -573,8 +573,8 @@ impl SequenceData {
573573 SequenceData :: String ( CharType :: UTF8 ( inner_data) ) ,
574574 SequenceData :: String ( CharType :: UTF8 ( ref mut other_inner_data) ) ,
575575 ) => inner_data. append ( other_inner_data) ,
576- _ => Err ( RuntimeErrorType :: BadTypeConstruction . into ( ) ) ,
577- } ? ;
576+ _ => return Err ( RuntimeErrorType :: BadTypeConstruction . into ( ) ) ,
577+ } ;
578578 Ok ( ( ) )
579579 }
580580
@@ -1240,9 +1240,8 @@ impl BuffData {
12401240 self . data . as_slice ( )
12411241 }
12421242
1243- fn append ( & mut self , other_seq : & mut BuffData ) -> Result < ( ) > {
1243+ fn append ( & mut self , other_seq : & mut BuffData ) {
12441244 self . data . append ( & mut other_seq. data ) ;
1245- Ok ( ( ) )
12461245 }
12471246
12481247 pub fn empty ( ) -> Self {
@@ -1279,9 +1278,8 @@ impl ListData {
12791278}
12801279
12811280impl ASCIIData {
1282- fn append ( & mut self , other_seq : & mut ASCIIData ) -> Result < ( ) > {
1281+ fn append ( & mut self , other_seq : & mut ASCIIData ) {
12831282 self . data . append ( & mut other_seq. data ) ;
1284- Ok ( ( ) )
12851283 }
12861284
12871285 pub fn len ( & self ) -> Result < BufferLength > {
@@ -1293,9 +1291,8 @@ impl ASCIIData {
12931291}
12941292
12951293impl UTF8Data {
1296- fn append ( & mut self , other_seq : & mut UTF8Data ) -> Result < ( ) > {
1294+ fn append ( & mut self , other_seq : & mut UTF8Data ) {
12971295 self . data . append ( & mut other_seq. data ) ;
1298- Ok ( ( ) )
12991296 }
13001297
13011298 pub fn len ( & self ) -> Result < BufferLength > {
@@ -1528,12 +1525,11 @@ impl TupleData {
15281525 fn new (
15291526 type_signature : TupleTypeSignature ,
15301527 data_map : BTreeMap < ClarityName , Value > ,
1531- ) -> Result < TupleData > {
1532- let t = TupleData {
1528+ ) -> TupleData {
1529+ TupleData {
15331530 type_signature,
15341531 data_map,
1535- } ;
1536- Ok ( t)
1532+ }
15371533 }
15381534
15391535 /// Return the number of fields in this tuple value
@@ -1561,7 +1557,7 @@ impl TupleData {
15611557 data_map. insert ( name, value) ;
15621558 }
15631559
1564- Self :: new ( TupleTypeSignature :: try_from ( type_map) ?, data_map)
1560+ Ok ( Self :: new ( TupleTypeSignature :: try_from ( type_map) ?, data_map) )
15651561 }
15661562
15671563 // TODO: add tests from mutation testing results #4834
@@ -1581,7 +1577,7 @@ impl TupleData {
15811577 }
15821578 data_map. insert ( name, value) ;
15831579 }
1584- Self :: new ( expected. clone ( ) , data_map)
1580+ Ok ( Self :: new ( expected. clone ( ) , data_map) )
15851581 }
15861582
15871583 pub fn get ( & self , name : & str ) -> Result < & Value > {
0 commit comments