@@ -274,25 +274,26 @@ macro_rules! forward_assign_primitive_into {
274
274
macro_rules! forward_pow_primitive {
275
275
( $lhs: ty, $rhs: ty) => {
276
276
impl_binary_op!( $lhs, $rhs, $lhs, Pow , pow, |lhs: $lhs, rhs: $rhs| {
277
- <_ as malachite:: num:: arithmetic:: traits:: Pow <u64 >>:: pow( lhs. 0 , rhs as _) . into( )
277
+ <_ as malachite:: base :: num:: arithmetic:: traits:: Pow <u64 >>:: pow( lhs. 0 , rhs as _) . into( )
278
278
} ) ;
279
279
impl_binary_op!( & $lhs, $rhs, $lhs, Pow , pow, |lhs: & $lhs, rhs: $rhs| {
280
- <_ as malachite:: num:: arithmetic:: traits:: Pow <u64 >>:: pow( & lhs. 0 , rhs as _) . into( )
280
+ <_ as malachite:: base :: num:: arithmetic:: traits:: Pow <u64 >>:: pow( & lhs. 0 , rhs as _) . into( )
281
281
} ) ;
282
282
impl_binary_op!( $lhs, & $rhs, $lhs, Pow , pow, |lhs: $lhs, rhs: & $rhs| {
283
- <_ as malachite:: num:: arithmetic:: traits:: Pow <u64 >>:: pow( lhs. 0 , * rhs as _) . into( )
283
+ <_ as malachite:: base :: num:: arithmetic:: traits:: Pow <u64 >>:: pow( lhs. 0 , * rhs as _) . into( )
284
284
} ) ;
285
285
impl_binary_op!( & $lhs, & $rhs, $lhs, Pow , pow, |lhs: & $lhs, rhs: & $rhs| {
286
- <_ as malachite:: num:: arithmetic:: traits:: Pow <u64 >>:: pow( & lhs. 0 , * rhs as _) . into( )
286
+ <_ as malachite:: base :: num:: arithmetic:: traits:: Pow <u64 >>:: pow( & lhs. 0 , * rhs as _) . into( )
287
287
} ) ;
288
288
} ;
289
289
}
290
290
291
291
macro_rules! forward_pow_biguint {
292
292
( $lhs: ty) => {
293
293
impl_binary_op!( $lhs, BigUint , $lhs, Pow , pow, |lhs: $lhs, rhs: BigUint | {
294
- let exp = malachite:: num:: conversion:: traits:: SaturatingFrom :: saturating_from( & rhs. 0 ) ;
295
- <_ as malachite:: num:: arithmetic:: traits:: Pow <u64 >>:: pow( lhs. 0 , exp) . into( )
294
+ let exp =
295
+ malachite:: base:: num:: conversion:: traits:: SaturatingFrom :: saturating_from( & rhs. 0 ) ;
296
+ <_ as malachite:: base:: num:: arithmetic:: traits:: Pow <u64 >>:: pow( lhs. 0 , exp) . into( )
296
297
} ) ;
297
298
impl_binary_op!(
298
299
& $lhs,
@@ -301,9 +302,10 @@ macro_rules! forward_pow_biguint {
301
302
Pow ,
302
303
pow,
303
304
|lhs: & $lhs, rhs: BigUint | {
304
- let exp =
305
- malachite:: num:: conversion:: traits:: SaturatingFrom :: saturating_from( & rhs. 0 ) ;
306
- <_ as malachite:: num:: arithmetic:: traits:: Pow <u64 >>:: pow( & lhs. 0 , exp) . into( )
305
+ let exp = malachite:: base:: num:: conversion:: traits:: SaturatingFrom :: saturating_from(
306
+ & rhs. 0 ,
307
+ ) ;
308
+ <_ as malachite:: base:: num:: arithmetic:: traits:: Pow <u64 >>:: pow( & lhs. 0 , exp) . into( )
307
309
}
308
310
) ;
309
311
impl_binary_op!(
@@ -313,9 +315,10 @@ macro_rules! forward_pow_biguint {
313
315
Pow ,
314
316
pow,
315
317
|lhs: $lhs, rhs: & BigUint | {
316
- let exp =
317
- malachite:: num:: conversion:: traits:: SaturatingFrom :: saturating_from( & rhs. 0 ) ;
318
- <_ as malachite:: num:: arithmetic:: traits:: Pow <u64 >>:: pow( lhs. 0 , exp) . into( )
318
+ let exp = malachite:: base:: num:: conversion:: traits:: SaturatingFrom :: saturating_from(
319
+ & rhs. 0 ,
320
+ ) ;
321
+ <_ as malachite:: base:: num:: arithmetic:: traits:: Pow <u64 >>:: pow( lhs. 0 , exp) . into( )
319
322
}
320
323
) ;
321
324
impl_binary_op!(
@@ -325,9 +328,10 @@ macro_rules! forward_pow_biguint {
325
328
Pow ,
326
329
pow,
327
330
|lhs: & $lhs, rhs: & BigUint | {
328
- let exp =
329
- malachite:: num:: conversion:: traits:: SaturatingFrom :: saturating_from( & rhs. 0 ) ;
330
- <_ as malachite:: num:: arithmetic:: traits:: Pow <u64 >>:: pow( & lhs. 0 , exp) . into( )
331
+ let exp = malachite:: base:: num:: conversion:: traits:: SaturatingFrom :: saturating_from(
332
+ & rhs. 0 ,
333
+ ) ;
334
+ <_ as malachite:: base:: num:: arithmetic:: traits:: Pow <u64 >>:: pow( & lhs. 0 , exp) . into( )
331
335
}
332
336
) ;
333
337
} ;
0 commit comments