diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-17 17:25:57 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-17 17:41:45 +0100 |
| commit | 35610a8c6a1721010b933324dacfe2c4d58761a3 (patch) | |
| tree | 2d02a53f541b7ebc48ace29dacedf534b670c6c1 /src/lib.rs | |
| parent | c5e67af22bd6242366819879be84c10c4dd135be (diff) | |
Fallible layout
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |
