Satisfy warnings

This commit is contained in:
Joscha 2022-11-20 22:15:56 +01:00
parent 3ed3c4e8f8
commit 03e7f10739
14 changed files with 66 additions and 66 deletions

View file

@ -49,10 +49,10 @@ pub enum Var {
impl HasSpan for Var {
fn span(&self) -> Span {
match self {
Var::Access { span, .. } => *span,
Var::Assign { span, .. } => *span,
Var::AccessIdent(ident) => ident.span(),
Var::AssignIdent { span, .. } => *span,
Self::Access { span, .. } => *span,
Self::Assign { span, .. } => *span,
Self::AccessIdent(ident) => ident.span(),
Self::AssignIdent { span, .. } => *span,
}
}
}