We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b42e81f commit 534fd7fCopy full SHA for 534fd7f
1 file changed
src/app.rs
@@ -126,13 +126,14 @@ impl App {
126
pub const BLOCK_COUNT: u8 = 2;
127
}
128
129
+ type SizeGetterToDisplayFormat<SizeGetter> =
130
+ <<SizeGetter as GetSize>::Size as size::Size>::DisplayFormat;
131
+
132
trait QuantityUtils<const INDEX: u8> {
133
const QUANTITY: Quantity;
134
type SizeGetter: GetSize<Size: size::Size>;
135
const SIZE_GETTER: Self::SizeGetter;
- fn formatter(
- bytes_format: BytesFormat,
- ) -> <<Self::SizeGetter as GetSize>::Size as size::Size>::DisplayFormat;
136
+ fn formatter(bytes_format: BytesFormat) -> SizeGetterToDisplayFormat<Self::SizeGetter>;
137
138
139
impl QuantityUtils<{ quantity_index::APPARENT_SIZE }> for () {
0 commit comments