From e8d36bd018177e4ccc0ae27ce8f21984d31d948a Mon Sep 17 00:00:00 2001 From: pml68 Date: Sat, 4 Jan 2025 14:25:14 +0100 Subject: feat: add custom theme codegen for `Project` --- iced_builder/src/error.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'iced_builder/src/error.rs') diff --git a/iced_builder/src/error.rs b/iced_builder/src/error.rs index 9cbb6ee..f4011bd 100644 --- a/iced_builder/src/error.rs +++ b/iced_builder/src/error.rs @@ -6,14 +6,14 @@ use thiserror::Error; #[derive(Debug, Clone, Error)] #[error(transparent)] pub enum Error { - IOError(Arc), + IO(Arc), #[error("config does not exist")] ConfigMissing, #[error("JSON parsing error: {0}")] - SerdeJSONError(Arc), + SerdeJSON(Arc), #[error("TOML parsing error: {0}")] - SerdeTOMLError(#[from] toml::de::Error), - FormatError(Arc), + SerdeTOML(#[from] toml::de::Error), + RustFmt(Arc), #[error("the element tree contains no matching element")] NonExistentElement, #[error( @@ -26,19 +26,19 @@ pub enum Error { impl From for Error { fn from(value: io::Error) -> Self { - Self::IOError(Arc::new(value)) + Self::IO(Arc::new(value)) } } impl From for Error { fn from(value: serde_json::Error) -> Self { - Self::SerdeJSONError(Arc::new(value)) + Self::SerdeJSON(Arc::new(value)) } } impl From for Error { fn from(value: rust_format::Error) -> Self { - Self::FormatError(Arc::new(value)) + Self::RustFmt(Arc::new(value)) } } -- cgit v1.2.3