Clean up generics

This commit is contained in:
howardwu 2020-06-07 20:53:39 -07:00
parent 35a897282f
commit cb83b42cfc
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ impl<'ast> From<AstRangeOrExpression<'ast>> for RangeOrExpression {
}
}
impl<'ast> fmt::Display for RangeOrExpression {
impl fmt::Display for RangeOrExpression {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
RangeOrExpression::Range(ref from, ref to) => write!(

View File

@ -58,13 +58,13 @@ impl Import {
}
}
impl<'ast> fmt::Display for Import {
impl fmt::Display for Import {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.format(f)
}
}
impl<'ast> fmt::Debug for Import {
impl fmt::Debug for Import {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.format(f)
}