Skip to content

Commit

Permalink
Remove unused variant from FormatterError
Browse files Browse the repository at this point in the history
This seems to be a relic from the change which added external formatting
commands - initially it worked by writing the file in place and
reloading it. Now this error type is not possible and can be removed.
  • Loading branch information
the-mikedavis authored and rmburg committed Jan 20, 2025
1 parent 84584a2 commit 6c09bd0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions helix-view/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2198,7 +2198,6 @@ pub enum FormatterError {
BrokenStdin,
WaitForOutputFailed,
InvalidUtf8Output,
DiskReloadError(String),
NonZeroExitStatus(Option<String>),
}

Expand All @@ -2213,7 +2212,6 @@ impl Display for FormatterError {
Self::BrokenStdin => write!(f, "Could not write to formatter stdin"),
Self::WaitForOutputFailed => write!(f, "Waiting for formatter output failed"),
Self::InvalidUtf8Output => write!(f, "Invalid UTF-8 formatter output"),
Self::DiskReloadError(error) => write!(f, "Error reloading file from disk: {}", error),
Self::NonZeroExitStatus(Some(output)) => write!(f, "Formatter error: {}", output),
Self::NonZeroExitStatus(None) => {
write!(f, "Formatter exited with non zero exit status")
Expand Down

0 comments on commit 6c09bd0

Please sign in to comment.