about summary refs log tree commit diff
path: root/tvix/eval/src/source.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-12-31T12·32+0300
committertazjin <tazjin@tvl.su>2023-01-02T22·24+0000
commit49ee3e3b148c1edb74a15e26eacb5911647d1de5 (patch)
tree209f044b2a6635d5850acf1b45221da8ee5988e9 /tvix/eval/src/source.rs
parent31973890a9ee60f50c1426ef7173bd4238234268 (diff)
chore(tvix/eval): implement std::error::Error for tvix_eval::Error r/5565
This makes it easier to interface this error with other crates.

Change-Id: I4947ea6097608f8c0427fb94a819ef748d94ea4b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7711
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/eval/src/source.rs')
-rw-r--r--tvix/eval/src/source.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/source.rs b/tvix/eval/src/source.rs
index f7f922f162..6496795360 100644
--- a/tvix/eval/src/source.rs
+++ b/tvix/eval/src/source.rs
@@ -15,7 +15,7 @@ use codemap::{CodeMap, Span};
 
 /// Tracks all source code in a Tvix evaluation for accurate error
 /// reporting.
-#[derive(Clone)]
+#[derive(Clone, Debug)]
 pub struct SourceCode(Rc<RefCell<CodeMap>>);
 
 impl SourceCode {