summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-13 16:27:44 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-13 16:27:44 +0200
commit05c27a581ece00e27c16be3d9ac69f3eefedcd4b (patch)
treeddd1dfb9598d0b629ce90bb963d194dceb0b4b97 /src/model
parent11f1f0818b990be1ed4a16652b7f30bf11159237 (diff)
Automatically display value in more places
Diffstat (limited to 'src/model')
-rw-r--r--src/model/recipe.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/recipe.rs b/src/model/recipe.rs
index 905e035e..3404a384 100644
--- a/src/model/recipe.rs
+++ b/src/model/recipe.rs
@@ -1,7 +1,7 @@
use std::fmt::{self, Debug, Formatter};
use super::{Content, Interruption, NodeId, Show, ShowNode, StyleChain, StyleEntry};
-use crate::diag::{At, TypResult};
+use crate::diag::TypResult;
use crate::eval::{Args, Func, Regex, Value};
use crate::library::structure::{EnumNode, ListNode};
use crate::syntax::Span;
@@ -87,7 +87,7 @@ impl Recipe {
Args::from_values(self.span, [arg()])
};
- self.func.call(ctx, args)?.cast().at(self.span)
+ Ok(self.func.call(ctx, args)?.display())
}
/// What kind of structure the property interrupts.