summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d4a8fba5..46bcad8d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -283,9 +283,7 @@ impl<'a> Vm<'a> {
/// diagnostics in the form of a vector of error message with file and span
/// information.
pub fn typeset(&mut self, id: SourceId) -> TypResult<Vec<Arc<Frame>>> {
- let module = self.evaluate(id)?;
- let frames = module.template.layout(self);
- Ok(frames)
+ self.evaluate(id)?.template.layout(self)
}
/// Resolve a user-entered path (relative to the source file) to be