diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-30 22:18:55 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-30 22:18:55 +0200 |
| commit | 181f756a9e8f7b664101058fe91e36b3858c2d02 (patch) | |
| tree | 542e7c694e91d8cc91fa97a328e9bda0567db679 /src/syntax/tree.rs | |
| parent | 0d44cf532136f3ba8e34d6f967f9e844cfb9c3f0 (diff) | |
Format everything with rustfmt! 💚
Diffstat (limited to 'src/syntax/tree.rs')
| -rw-r--r-- | src/syntax/tree.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/syntax/tree.rs b/src/syntax/tree.rs index 44acd023..7295ec04 100644 --- a/src/syntax/tree.rs +++ b/src/syntax/tree.rs @@ -2,15 +2,15 @@ use std::fmt::{self, Debug, Formatter}; +use super::decoration::Decoration; +use super::span::{SpanVec, Spanned}; +use super::Ident; use crate::color::RgbaColor; use crate::compute::table::{SpannedEntry, Table}; use crate::compute::value::{TableValue, Value}; use crate::layout::LayoutContext; use crate::length::Length; use crate::{DynFuture, Feedback}; -use super::decoration::Decoration; -use super::span::{Spanned, SpanVec}; -use super::Ident; /// A collection of nodes which form a tree together with the nodes' children. pub type SyntaxTree = SpanVec<SyntaxNode>; @@ -96,11 +96,7 @@ impl Expr { } /// Evaluate the expression to a value. - pub async fn eval( - &self, - ctx: &LayoutContext<'_>, - f: &mut Feedback, - ) -> Value { + pub async fn eval(&self, ctx: &LayoutContext<'_>, f: &mut Feedback) -> Value { use Expr::*; match self { Ident(i) => Value::Ident(i.clone()), |
