diff options
| author | Martin <mhaug@live.de> | 2020-08-31 11:58:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-31 11:58:15 +0200 |
| commit | 696560622d52e0e8c7a09df4851d25f9ea022899 (patch) | |
| tree | 542e7c694e91d8cc91fa97a328e9bda0567db679 /src/syntax/tree.rs | |
| parent | fe51ad2e7c25f1291995ab3c18595d19a7420e11 (diff) | |
| parent | 181f756a9e8f7b664101058fe91e36b3858c2d02 (diff) | |
Merge pull request #13 from typst/fmt
Formatting 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()), |
