diff options
Diffstat (limited to 'cli/lsp/testing/execution.rs')
-rw-r--r-- | cli/lsp/testing/execution.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/lsp/testing/execution.rs b/cli/lsp/testing/execution.rs index 93f3d9ba3..6f90e60a3 100644 --- a/cli/lsp/testing/execution.rs +++ b/cli/lsp/testing/execution.rs @@ -760,9 +760,8 @@ impl test::TestReporter for LspTestReporter { .and_then(|v| v.last().map(|td| td.into())) }); let value = match output { - test::TestOutput::PrintStdout(value) - | test::TestOutput::PrintStderr(value) => value.replace('\n', "\r\n"), - test::TestOutput::Stdout(bytes) | test::TestOutput::Stderr(bytes) => { + test::TestOutput::String(value) => value.replace('\n', "\r\n"), + test::TestOutput::Bytes(bytes) => { String::from_utf8_lossy(bytes).replace('\n', "\r\n") } }; |