Split ColorConfig
off of HumanReadableErrorType
The previous setup tied two unrelated things together. Splitting these two is a better model.
This commit is contained in:
parent
ce20e15f01
commit
ae696f847d
9 changed files with 62 additions and 54 deletions
|
@ -50,7 +50,8 @@ fn test_positions(code: &str, span: (u32, u32), expected_output: SpanTestData) {
|
|||
sm,
|
||||
fallback_bundle,
|
||||
true, // pretty
|
||||
HumanReadableErrorType::Short(ColorConfig::Never),
|
||||
HumanReadableErrorType::Short,
|
||||
ColorConfig::Never,
|
||||
);
|
||||
|
||||
let span = Span::with_root_ctxt(BytePos(span.0), BytePos(span.1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue