From 0ed94b3f011a2d3c22bdc4affb502720be22c371 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Sat, 14 Sep 2024 18:59:23 +0200 Subject: add restoration of files and packages --- src/error.rs | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index e24c3b1..cb57e99 100644 --- a/src/error.rs +++ b/src/error.rs @@ -24,21 +24,13 @@ pub enum Error { #[error("Unsupported os/distro")] Unsupported, - #[error("json: {source}")] - SerdeJson { - #[from] - source: serde_json::Error, - }, - - #[error("toml serializer: {source}")] - TomlSerialize { - #[from] - source: toml::ser::Error, - }, - - #[error("io: {source}")] - Io { - #[from] - source: std::io::Error, - }, + // Deps + #[error(transparent)] + SerdeJson(#[from] serde_json::Error), + + #[error(transparent)] + TomlSerialize(#[from] toml::ser::Error), + + #[error(transparent)] + Io(#[from] std::io::Error), } -- cgit v1.2.3