Commit 5bb0d88 1 parent 639c6b3 commit 5bb0d88 Copy full SHA for 5bb0d88
File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -343,10 +343,11 @@ macro_rules! quantity {
343
343
where
344
344
N : Unit
345
345
{
346
+ let _ = unit;
346
347
__system:: fmt:: Arguments {
347
- dimension: $crate:: lib:: marker:: PhantomData ,
348
- unit,
349
348
style,
349
+ dimension: $crate:: lib:: marker:: PhantomData ,
350
+ _unit: $crate:: lib:: marker:: PhantomData ,
350
351
}
351
352
}
352
353
@@ -384,11 +385,12 @@ macro_rules! quantity {
384
385
where
385
386
N : Unit
386
387
{
388
+ let _ = unit;
387
389
__system:: fmt:: QuantityArguments {
388
390
arguments: __system:: fmt:: Arguments {
389
- dimension: $crate:: lib:: marker:: PhantomData ,
390
- unit,
391
391
style,
392
+ dimension: $crate:: lib:: marker:: PhantomData ,
393
+ _unit: $crate:: lib:: marker:: PhantomData ,
392
394
} ,
393
395
quantity: self ,
394
396
}
Original file line number Diff line number Diff line change @@ -1423,11 +1423,11 @@ macro_rules! system {
1423
1423
pub struct Arguments <D , N >
1424
1424
where
1425
1425
D : Dimension + ?Sized ,
1426
- N : Unit ,
1426
+ N : Unit + ? Sized ,
1427
1427
{
1428
- pub ( super ) dimension: $crate:: lib:: marker:: PhantomData <D >,
1429
- pub ( super ) unit: N ,
1430
1428
pub ( super ) style: DisplayStyle ,
1429
+ pub ( super ) dimension: $crate:: lib:: marker:: PhantomData <D >,
1430
+ pub ( super ) _unit: $crate:: lib:: marker:: PhantomData <N >,
1431
1431
}
1432
1432
1433
1433
/// A struct to specify a display style and unit for a given quantity.
You can’t perform that action at this time.
0 commit comments