Turn on new errors, json mode. Remove duplicate unicode test
This commit is contained in:
parent
42903d9a8f
commit
fad4f32c31
18 changed files with 29 additions and 595 deletions
|
@ -15,18 +15,10 @@ use CodeMapper;
|
|||
use std::rc::Rc;
|
||||
use {Level};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub enum FormatMode {
|
||||
NewErrorFormat,
|
||||
OriginalErrorFormat,
|
||||
EnvironmentSelected
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct SnippetData {
|
||||
codemap: Rc<CodeMapper>,
|
||||
files: Vec<FileInfo>,
|
||||
format_mode: FormatMode,
|
||||
files: Vec<FileInfo>
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
@ -41,10 +33,6 @@ pub struct FileInfo {
|
|||
primary_span: Option<Span>,
|
||||
|
||||
lines: Vec<Line>,
|
||||
|
||||
/// The type of error format to render. We keep it here so that
|
||||
/// it's easy to configure for both tests and regular usage
|
||||
format_mode: FormatMode,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialOrd, Ord, PartialEq, Eq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue