File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,10 @@ fn assert_round_trip_with_options(
8080 lzma_rs:: compress:: UnpackedSize :: WriteToHeader ( None ) ,
8181 lzma_rs:: decompress:: UnpackedSize :: ReadHeaderButUseProvided ( Some ( _) ) ,
8282 ) => { }
83- _ => panic ! ( error) ,
83+ _ => panic ! ( "{}" , error) ,
8484 }
8585 } else {
86- panic ! ( error) ;
86+ panic ! ( "{}" , error) ;
8787 }
8888 }
8989
@@ -343,11 +343,13 @@ fn memlimit() {
343343 let error = stream. write_all ( & compressed) . unwrap_err ( ) ;
344344 assert ! (
345345 error. to_string( ) . contains( "exceeded memory limit of 0" ) ,
346+ "{}" ,
346347 error. to_string( )
347348 ) ;
348349 let error = stream. finish ( ) . unwrap_err ( ) ;
349350 assert ! (
350351 error. to_string( ) . contains( "previous write error" ) ,
352+ "{}" ,
351353 error. to_string( )
352354 ) ;
353355 }
You can’t perform that action at this time.
0 commit comments