Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
bin: Improve thiserror usage
Erik Kundt committed 8 months ago
commit f0a47ac5b569ef5e385eba7f2233af6c72cb5d5d
parent b4dd057f455b367cc2e43503f7ae10e18cf34965
1 file changed +4 -4
modified bin/main.rs
@@ -39,13 +39,13 @@ pub const VERSION: Version = Version {

#[derive(Error, Debug)]
pub enum Error {
-
    #[error("{0}")]
+
    #[error(transparent)]
    Forward(#[from] term::ForwardError),
-
    #[error("{0}")]
+
    #[error(transparent)]
    Args(#[from] lexopt::Error),
-
    #[error("{0}")]
+
    #[error(transparent)]
    Json(#[from] serde_json::Error),
-
    #[error("{0}")]
+
    #[error(transparent)]
    Other(#[from] anyhow::Error),
}