mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-02 18:01:05 +00:00
style: use #[error(transparent)] instead of #[error("{0}")]
This is the canonical way of forwarding an error message with the "thiserror" crate.
This commit is contained in:
parent
2832d7c739
commit
5d0535276c
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ pub enum ExternalToolError {
|
|||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum DiffEditError {
|
||||
#[error("{0}")]
|
||||
#[error(transparent)]
|
||||
ExternalToolError(#[from] ExternalToolError),
|
||||
#[error("Failed to write directories to diff: {0:?}")]
|
||||
CheckoutError(#[from] CheckoutError),
|
||||
|
@ -77,7 +77,7 @@ pub enum DiffEditError {
|
|||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum ConflictResolveError {
|
||||
#[error("{0}")]
|
||||
#[error(transparent)]
|
||||
ExternalToolError(#[from] ExternalToolError),
|
||||
#[error(
|
||||
"To use `{tool_name}` as a merge tool, the config `merge-tools.{tool_name}.merge-args` \
|
||||
|
|
Loading…
Reference in a new issue