Skip to content

Commit b42e81f

Browse files
committed
refactor: move alias closer to its use-site
1 parent c5c94eb commit b42e81f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,6 @@ impl App {
135135
) -> <<Self::SizeGetter as GetSize>::Size as size::Size>::DisplayFormat;
136136
}
137137

138-
type QuantityIndexToSizeType<const INDEX: u8> =
139-
<<() as QuantityUtils<INDEX>>::SizeGetter as GetSize>::Size;
140-
141138
impl QuantityUtils<{ quantity_index::APPARENT_SIZE }> for () {
142139
const QUANTITY: Quantity = Quantity::ApparentSize;
143140
type SizeGetter = GetApparentSize;
@@ -170,6 +167,9 @@ impl App {
170167
fn create_reporter(report_error: fn(ErrorReport)) -> Self::Reporter;
171168
}
172169

170+
type QuantityIndexToSizeType<const INDEX: u8> =
171+
<<() as QuantityUtils<INDEX>>::SizeGetter as GetSize>::Size;
172+
173173
impl<const QUANTITY_INDEX: u8> CreateReporter<false, QUANTITY_INDEX> for ()
174174
where
175175
(): QuantityUtils<QUANTITY_INDEX>,

0 commit comments

Comments
 (0)