summaryrefslogtreecommitdiff
path: root/iced_builder/src/error.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.me>2024-11-06 14:22:41 +0100
committerpml68 <contact@pml68.me>2024-11-06 16:26:36 +0100
commit65d3c249c9da370e26521a5ff409b6e6fdad4779 (patch)
treeac8f2a1d05e481da6d3f82cce6081b853a71269c /iced_builder/src/error.rs
parentfix: error when dropping new element on element list (diff)
downloadiced-builder-65d3c249c9da370e26521a5ff409b6e6fdad4779.tar.gz
feat: animated theme switching with `iced_anim` crate
c c
Diffstat (limited to '')
-rw-r--r--iced_builder/src/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/iced_builder/src/error.rs b/iced_builder/src/error.rs
index edb57b9..ab102a6 100644
--- a/iced_builder/src/error.rs
+++ b/iced_builder/src/error.rs
@@ -36,8 +36,8 @@ impl From<rust_format::Error> for Error {
}
}
-impl From<&'static str> for Error {
- fn from(value: &'static str) -> Self {
+impl From<&str> for Error {
+ fn from(value: &str) -> Self {
Self::Other(value.to_owned())
}
}