@@ -3760,7 +3760,7 @@ mod tests {
37603760 column_metadata_as_hex : None ,
37613761 } ,
37623762 ) ;
3763- let err = FileEncryptionProperties :: try_from ( enc)
3763+ let err = FileEncryptionProperties :: try_from ( enc. clone ( ) )
37643764 . unwrap_err ( )
37653765 . to_string ( ) ;
37663766 assert ! (
@@ -3776,15 +3776,15 @@ mod tests {
37763776 column_metadata_as_hex : Some ( "zz" . to_string ( ) ) ,
37773777 } ,
37783778 ) ;
3779- let err = FileEncryptionProperties :: try_from ( enc)
3779+ let err = FileEncryptionProperties :: try_from ( enc. clone ( ) )
37803780 . unwrap_err ( )
37813781 . to_string ( ) ;
37823782 assert ! ( err. contains( "Unable to decode hex column metadata for column col1" ) ) ;
37833783 enc. column_encryption_properties . clear ( ) ;
37843784
37853785 // Encryption: invalid AAD prefix hex
37863786 enc. aad_prefix_as_hex = "zz" . to_string ( ) ;
3787- let err = FileEncryptionProperties :: try_from ( enc)
3787+ let err = FileEncryptionProperties :: try_from ( enc. clone ( ) )
37883788 . unwrap_err ( )
37893789 . to_string ( ) ;
37903790 assert ! ( err. contains( "Unable to decode hex AAD prefix" ) ) ;
@@ -3814,7 +3814,7 @@ mod tests {
38143814 column_key_as_hex : "bad" . to_string ( ) ,
38153815 } ,
38163816 ) ;
3817- let err = FileDecryptionProperties :: try_from ( dec)
3817+ let err = FileDecryptionProperties :: try_from ( dec. clone ( ) )
38183818 . unwrap_err ( )
38193819 . to_string ( ) ;
38203820 assert ! ( err. contains( "Could not decode hex column key" ) ) ;
@@ -3823,15 +3823,15 @@ mod tests {
38233823
38243824 // Decryption: invalid footer key hex
38253825 dec. footer_key_as_hex = "bad" . to_string ( ) ;
3826- let err = FileDecryptionProperties :: try_from ( dec)
3826+ let err = FileDecryptionProperties :: try_from ( dec. clone ( ) )
38273827 . unwrap_err ( )
38283828 . to_string ( ) ;
38293829 assert ! ( err. contains( "Could not decode hex footer key" ) ) ;
38303830 dec. footer_key_as_hex = valid_footer_key_as_hex;
38313831
38323832 // Decryption: invalid AAD prefix hex
38333833 dec. aad_prefix_as_hex = "zz" . to_string ( ) ;
3834- let err = FileDecryptionProperties :: try_from ( dec)
3834+ let err = FileDecryptionProperties :: try_from ( dec. clone ( ) )
38353835 . unwrap_err ( )
38363836 . to_string ( ) ;
38373837 assert ! ( err. contains( "Could not decode hex AAD prefix" ) ) ;
0 commit comments