File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -845,7 +845,7 @@ fn test_radix_bases() {
845845 for radix in 3u32 ..256 {
846846 if !radix. is_power_of_two ( ) {
847847 let ( base, power) = get_radix_base ( radix) ;
848- let radix = BigDigit :: try_from ( radix) . unwrap ( ) ;
848+ let radix = BigDigit :: from ( radix) ;
849849 let power = u32:: try_from ( power) . unwrap ( ) ;
850850 assert_eq ! ( base, radix. pow( power) ) ;
851851 assert ! ( radix. checked_pow( power + 1 ) . is_none( ) ) ;
@@ -858,7 +858,7 @@ fn test_half_radix_bases() {
858858 for radix in 3u32 ..256 {
859859 if !radix. is_power_of_two ( ) {
860860 let ( base, power) = get_half_radix_base ( radix) ;
861- let radix = BigDigit :: try_from ( radix) . unwrap ( ) ;
861+ let radix = BigDigit :: from ( radix) ;
862862 let power = u32:: try_from ( power) . unwrap ( ) ;
863863 assert_eq ! ( base, radix. pow( power) ) ;
864864 assert ! ( radix. pow( power + 1 ) > big_digit:: HALF ) ;
You can’t perform that action at this time.
0 commit comments