@@ -48,7 +48,7 @@ fn test_utf16be_delimiter() {
4848 String :: from ( "Foo\0 Bar" ) ,
4949 ) ;
5050
51- let data = f. as_bytes ( ) ;
51+ let data = f. as_bytes ( false ) ;
5252
5353 let no_bom_be_data = b"\x02 \
5454 \0 F\0 o\0 o\0 \0 \
@@ -74,7 +74,7 @@ fn test_utf16_delimiter() {
7474 String :: from ( "Foo\0 Bar" ) ,
7575 ) ;
7676
77- let data = f. as_bytes ( ) ;
77+ let data = f. as_bytes ( false ) ;
7878
7979 // TODO: TagLib writes a BOM to every string, making the output identical to `mutli_bom_le_data`,
8080 // rather than `single_bom_le_data` in Lofty's case. Not sure if we should be writing the BOM
@@ -507,7 +507,7 @@ fn test_render_user_url_link_frame() {
507507 ) ;
508508
509509 assert_eq ! (
510- f. as_bytes( ) ,
510+ f. as_bytes( false ) ,
511511 b"\
512512 \x00 \
513513 foo\x00 \
@@ -543,7 +543,7 @@ fn test_render_ownership_frame() {
543543 ) ;
544544
545545 assert_eq ! (
546- f. as_bytes( ) . unwrap( ) ,
546+ f. as_bytes( false ) . unwrap( ) ,
547547 b"\
548548 \x00 \
549549 GBP1.99\x00 \
@@ -721,7 +721,7 @@ fn test_render_comments_frame() {
721721 ) ;
722722
723723 assert_eq ! (
724- f. as_bytes( ) . unwrap( ) ,
724+ f. as_bytes( false ) . unwrap( ) ,
725725 b"\
726726 \x01 \
727727 eng\
@@ -807,7 +807,7 @@ fn test_render_user_text_identification_frame() {
807807 let mut f = ExtendedTextFrame :: new ( TextEncoding :: Latin1 , String :: new ( ) , String :: from ( "Text" ) ) ;
808808
809809 assert_eq ! (
810- f. as_bytes( ) ,
810+ f. as_bytes( false ) ,
811811 b"\
812812 \x00 \
813813 \x00 \
@@ -817,7 +817,7 @@ fn test_render_user_text_identification_frame() {
817817 f. description = String :: from ( "Description" ) ;
818818
819819 assert_eq ! (
820- f. as_bytes( ) ,
820+ f. as_bytes( false ) ,
821821 b"\
822822 \x00 \
823823 Description\x00 \
0 commit comments