diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-04 19:57:39 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-04 19:57:39 +0200 |
| commit | c1dd872b34507a9f45b39a8a6ac70606b642a19d (patch) | |
| tree | e3afa36228321f7b0680d8c989818f306b80d43e /src/eval | |
| parent | 105f70867ddcb2c73860bf0c55f1380eda2437ca (diff) | |
Remove unncessary wrappers and typedefs 🛑
Diffstat (limited to 'src/eval')
| -rw-r--r-- | src/eval/value.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval/value.rs b/src/eval/value.rs index 4ba1b6ba..f1ffc6de 100644 --- a/src/eval/value.rs +++ b/src/eval/value.rs @@ -9,7 +9,7 @@ use fontdock::{FontStretch, FontStyle, FontWeight}; use super::dict::{Dict, SpannedEntry}; use crate::color::RgbaColor; use crate::geom::Linear; -use crate::layout::{Command, Commands, Dir, LayoutContext, SpecAlign}; +use crate::layout::{Command, Dir, LayoutContext, SpecAlign}; use crate::paper::Paper; use crate::syntax::{Ident, Span, SpanWith, Spanned, SynNode, SynTree}; use crate::{DynFuture, Feedback}; @@ -49,7 +49,7 @@ pub enum Value { /// An executable function. Func(ValueFunc), /// Layouting commands. - Commands(Commands), + Commands(Vec<Command>), /// The result of invalid operations. Error, } @@ -83,7 +83,7 @@ impl Spanned<Value> { /// /// If this is already a command-value, it is simply unwrapped, otherwise /// the value is represented as layoutable content in a reasonable way. - pub fn into_commands(self) -> Commands { + pub fn into_commands(self) -> Vec<Command> { match self.v { // Pass-through. Value::Commands(commands) => commands, |
