1
Fork 0

Bring back generic FieldIdx

This commit is contained in:
Lukas Wirth 2023-09-29 17:09:56 +02:00
parent 3b99d73f5a
commit b47ad3b744
3 changed files with 113 additions and 104 deletions

View file

@ -42,8 +42,8 @@ impl<'a, Ty: fmt::Display> fmt::Debug for TyAndLayout<'a, Ty> {
}
impl<'a, Ty> Deref for TyAndLayout<'a, Ty> {
type Target = &'a LayoutS;
fn deref(&self) -> &&'a LayoutS {
type Target = &'a LayoutS<FieldIdx>;
fn deref(&self) -> &&'a LayoutS<FieldIdx> {
&self.layout.0.0
}
}