From edff2ae6803928e59eae96e2f75cd62a7e24c76f Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 9 Jun 2021 10:45:49 +0200 Subject: Remove template pretty printing Was buggy and pretty useless anyway since it couldn't peek into function templates. --- src/syntax/expr.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/syntax/expr.rs') diff --git a/src/syntax/expr.rs b/src/syntax/expr.rs index fd106eb8..e0135d1c 100644 --- a/src/syntax/expr.rs +++ b/src/syntax/expr.rs @@ -97,12 +97,14 @@ impl Expr { /// Whether the expression can be shortened in markup with a hashtag. pub fn has_short_form(&self) -> bool { matches!(self, - Expr::Ident(_) - | Expr::Call(_) - | Expr::Let(_) - | Expr::If(_) - | Expr::While(_) - | Expr::For(_) + Self::Ident(_) + | Self::Call(_) + | Self::Let(_) + | Self::If(_) + | Self::While(_) + | Self::For(_) + | Self::Import(_) + | Self::Include(_) ) } } -- cgit v1.2.3