summaryrefslogtreecommitdiff
path: root/dhall/src/error/builder.rs
diff options
context:
space:
mode:
authorNadrieril2020-03-31 20:25:02 +0100
committerGitHub2020-03-31 20:25:02 +0100
commit5a5aa49e64197899006751db72e404f4b2292d4e (patch)
tree0b62e961c1de99ce9a78c4775ce8eab047cdf768 /dhall/src/error/builder.rs
parenteecd41fe5dd155752aaaa06af02bc32f8a416ba5 (diff)
parente12fb2928307d240461e749e5d371cef17cf520c (diff)
Merge pull request #156 from Nadrieril/fix-155
Fix #155
Diffstat (limited to 'dhall/src/error/builder.rs')
-rw-r--r--dhall/src/error/builder.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/dhall/src/error/builder.rs b/dhall/src/error/builder.rs
index f444518..c0bacb5 100644
--- a/dhall/src/error/builder.rs
+++ b/dhall/src/error/builder.rs
@@ -1,6 +1,5 @@
use annotate_snippets::{
display_list::DisplayList,
- formatter::DisplayListFormatter,
snippet::{Annotation, AnnotationType, Slice, Snippet, SourceAnnotation},
};
@@ -152,10 +151,9 @@ impl ErrorBuilder {
title: Some(this.title.into_annotation()),
slices,
footer,
+ opt: Default::default(),
};
- let dl = DisplayList::from(snippet);
- let dlf = DisplayListFormatter::new(true, false);
- dlf.format(&dl)
+ DisplayList::from(snippet).to_string()
}
}