from none doesn't need data to be passed
This commit is contained in:
parent
1df5429eab
commit
7cea2452d1
|
@ -282,7 +282,7 @@ enum ExpandedData {
|
|||
}
|
||||
|
||||
impl ExpandedData {
|
||||
fn from_none(data: Data) -> Self {
|
||||
fn from_none() -> Self {
|
||||
Self::None
|
||||
}
|
||||
fn from_error(data: Data) -> Self {
|
||||
|
@ -383,7 +383,7 @@ impl From<(Tag, Data)> for ExpandedData {
|
|||
Tag::InternedType | Tag::StructDecl => Self::from_intern(data),
|
||||
Tag::PointerType | Tag::IfElseExpr => Self::from_index_and_extra_offset(data),
|
||||
Tag::Error => Self::from_error(data),
|
||||
Tag::ReturnStmt | Tag::Undefined => Self::from_none(data),
|
||||
Tag::ReturnStmt | Tag::Undefined => Self::from_none(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue