fix: format ErrorKind to avoid compilation error#2548
Closed
EricCrosson wants to merge 1 commit into
Closed
Conversation
On one of my machines (just one 🤔) compiling helix on 6801b28 yields the following error ``` error[E0277]: `ErrorKind` doesn't implement `std::fmt::Display` --> helix-view/src/handlers/dap.rs:305:81 | 305 | ... e => panic!("Error to start debug console: {}", e), | ^ `ErrorKind` cannot be formatted with the default formatter | = help: the trait `std::fmt::Display` is not implemented for `ErrorKind` = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead = note: this error originates in the macro `$crate::const_format_args` (in Nightly builds, run with -Z macro-backtrace for more info) For more information about this error, try `rustc --explain E0277`. error: could not compile `helix-view` due to previous error ``` This commit takes the compiler's advice and uses the pretty-print formatter.
Member
|
Fixed in #2529 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On one of my machines (just one 🤔) compiling helix on 6801b28
yields the following error
This commit takes the compiler's advice and uses the pretty-print
formatter.