summaryrefslogtreecommitdiff
path: root/iced_builder/src/error.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-01-04 14:25:14 +0100
committerpml68 <contact@pml68.dev>2025-01-04 14:25:14 +0100
commite8d36bd018177e4ccc0ae27ce8f21984d31d948a (patch)
tree7204d3bbfb5831d1e6d920b1179176898cb52c6e /iced_builder/src/error.rs
parentrefactor: apply clippy suggestions (diff)
downloadiced-builder-e8d36bd018177e4ccc0ae27ce8f21984d31d948a.tar.gz
feat: add custom theme codegen for `Project`
Diffstat (limited to 'iced_builder/src/error.rs')
-rw-r--r--iced_builder/src/error.rs14
1 files changed, 7 insertions, 7 deletions
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::Error>),
+ IO(Arc<io::Error>),
#[error("config does not exist")]
ConfigMissing,
#[error("JSON parsing error: {0}")]
- SerdeJSONError(Arc<serde_json::Error>),
+ SerdeJSON(Arc<serde_json::Error>),
#[error("TOML parsing error: {0}")]
- SerdeTOMLError(#[from] toml::de::Error),
- FormatError(Arc<rust_format::Error>),
+ SerdeTOML(#[from] toml::de::Error),
+ RustFmt(Arc<rust_format::Error>),
#[error("the element tree contains no matching element")]
NonExistentElement,
#[error(
@@ -26,19 +26,19 @@ pub enum Error {
impl From<io::Error> for Error {
fn from(value: io::Error) -> Self {
- Self::IOError(Arc::new(value))
+ Self::IO(Arc::new(value))
}
}
impl From<serde_json::Error> for Error {
fn from(value: serde_json::Error) -> Self {
- Self::SerdeJSONError(Arc::new(value))
+ Self::SerdeJSON(Arc::new(value))
}
}
impl From<rust_format::Error> for Error {
fn from(value: rust_format::Error) -> Self {
- Self::FormatError(Arc::new(value))
+ Self::RustFmt(Arc::new(value))
}
}