11use crate :: {
22 apint:: ApInt ,
33 digit,
4- errors:: { Error , Result } ,
5- mem:: { string:: String , vec:: Vec } ,
4+ errors:: {
5+ Error ,
6+ Result ,
7+ } ,
8+ mem:: {
9+ string:: String ,
10+ vec:: Vec ,
11+ } ,
612 radix:: Radix ,
713} ;
814use core:: fmt;
@@ -190,7 +196,10 @@ impl ApInt {
190196 //
191197 // TODO: Better document what happens here and why.
192198 fn from_bitwise_digits ( v : & [ u8 ] , bits : usize ) -> ApInt {
193- use crate :: digit:: { Digit , DigitRepr } ;
199+ use crate :: digit:: {
200+ Digit ,
201+ DigitRepr ,
202+ } ;
194203
195204 debug_assert ! ( !v. is_empty( ) && bits <= 8 && digit:: BITS % bits == 0 ) ;
196205 debug_assert ! ( v. iter( ) . all( |& c| DigitRepr :: from( c) < ( 1 << bits) ) ) ;
@@ -217,7 +226,10 @@ impl ApInt {
217226 //
218227 // TODO: Better document what happens here and why.
219228 fn from_inexact_bitwise_digits ( v : & [ u8 ] , bits : usize ) -> ApInt {
220- use crate :: digit:: { Digit , DigitRepr } ;
229+ use crate :: digit:: {
230+ Digit ,
231+ DigitRepr ,
232+ } ;
221233
222234 debug_assert ! ( !v. is_empty( ) && bits <= 8 && digit:: BITS % bits != 0 ) ;
223235 debug_assert ! ( v. iter( ) . all( |& c| ( DigitRepr :: from( c) ) < ( 1 << bits) ) ) ;
@@ -259,7 +271,10 @@ impl ApInt {
259271 // TODO: This does not work, yet. Some parts of the algorithm are
260272 // commented-out since the required functionality does not exist, yet.
261273 fn from_radix_digits ( v : & [ u8 ] , radix : Radix ) -> ApInt {
262- use crate :: digit:: { Digit , DigitRepr } ;
274+ use crate :: digit:: {
275+ Digit ,
276+ DigitRepr ,
277+ } ;
263278 #[ cfg( feature = "libm_0" ) ]
264279 use libm:: F64Ext as _;
265280
0 commit comments