summaryrefslogtreecommitdiff
path: root/src/model/show.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/show.rs')
-rw-r--r--src/model/show.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/model/show.rs b/src/model/show.rs
index e8d27977..56fb29ba 100644
--- a/src/model/show.rs
+++ b/src/model/show.rs
@@ -3,7 +3,7 @@ use std::hash::Hash;
use std::sync::Arc;
use super::{Content, NodeId, Selector, StyleChain};
-use crate::diag::TypResult;
+use crate::diag::SourceResult;
use crate::eval::Dict;
use crate::util::Prehashed;
use crate::World;
@@ -18,7 +18,7 @@ pub trait Show: 'static {
/// The base recipe for this node that is executed if there is no
/// user-defined show rule.
- fn realize(&self, world: &dyn World, styles: StyleChain) -> TypResult<Content>;
+ fn realize(&self, world: &dyn World, styles: StyleChain) -> SourceResult<Content>;
/// Finalize this node given the realization of a base or user recipe. Use
/// this for effects that should work even in the face of a user-defined
@@ -33,7 +33,7 @@ pub trait Show: 'static {
world: &dyn World,
styles: StyleChain,
realized: Content,
- ) -> TypResult<Content> {
+ ) -> SourceResult<Content> {
Ok(realized)
}
@@ -74,7 +74,7 @@ impl Show for ShowNode {
self.0.encode(styles)
}
- fn realize(&self, world: &dyn World, styles: StyleChain) -> TypResult<Content> {
+ fn realize(&self, world: &dyn World, styles: StyleChain) -> SourceResult<Content> {
self.0.realize(world, styles)
}
@@ -83,7 +83,7 @@ impl Show for ShowNode {
world: &dyn World,
styles: StyleChain,
realized: Content,
- ) -> TypResult<Content> {
+ ) -> SourceResult<Content> {
self.0.finalize(world, styles, realized)
}