File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -966,7 +966,7 @@ mod tests {
966966 task_id,
967967 ) ) ,
968968 ) ;
969- assert_eq ! ( r. 0 , true ) ;
969+ assert ! ( r. 0 ) ;
970970 if h <= 2 {
971971 assert ! ( r. 1 . is_none( ) ) ;
972972 } else {
Original file line number Diff line number Diff line change @@ -830,20 +830,20 @@ impl Tree {
830830 path. serial_num = sn;
831831
832832 if twig_id > self . youngest_twig_id {
833- return Err ( format ! ( "twig_id > self.youngest_twig_id" ) ) ;
833+ return Err ( "twig_id > self.youngest_twig_id" . to_string ( ) ) ;
834834 }
835835
836836 ( path. upper_path , path. root ) = self . get_upper_path_and_root ( twig_id) ;
837837 if path. upper_path . is_empty ( ) {
838- return Err ( format ! ( "Cannot find upper path" ) ) ;
838+ return Err ( "Cannot find upper path" . to_string ( ) ) ;
839839 }
840840
841841 if twig_id == self . youngest_twig_id {
842842 path. left_of_twig = proof:: get_left_path_in_mem ( & self . mtree_for_youngest_twig , sn) ;
843843 } else {
844844 let twig_file = & self . twig_file_wr . twig_file ;
845845 if twig_file. is_empty ( ) {
846- return Err ( format ! ( "twig_file is empty" ) ) ;
846+ return Err ( "twig_file is empty" . to_string ( ) ) ;
847847 }
848848 path. left_of_twig = proof:: get_left_path_on_disk ( twig_file, twig_id, sn) ;
849849 }
You can’t perform that action at this time.
0 commit comments