aboutsummaryrefslogtreecommitdiff
path: root/src/libs/intertrait/cast/error.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-11-19 15:45:12 +0100
committerHampusM <hampus@hampusmat.com>2022-11-19 15:45:12 +0100
commit9f27a925bd323e8e0864bedeb33a3c6953517ea1 (patch)
treeea5d8faaed82c58fa037fa377173bb365e1cd697 /src/libs/intertrait/cast/error.rs
parentd99cbf9fa95856cbc14a3217e1cd3f13aeb2e0b3 (diff)
refactor: reorganize non-public API items
Diffstat (limited to 'src/libs/intertrait/cast/error.rs')
-rw-r--r--src/libs/intertrait/cast/error.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libs/intertrait/cast/error.rs b/src/libs/intertrait/cast/error.rs
deleted file mode 100644
index d253fc5..0000000
--- a/src/libs/intertrait/cast/error.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-use crate::libs::intertrait::{CasterError, GetCasterError};
-
-#[derive(thiserror::Error, Debug)]
-pub enum CastError
-{
- #[error("Failed to get caster")]
- GetCasterFailed(#[from] GetCasterError),
-
- #[error("Failed to cast from {from} to {to}")]
- CastFailed
- {
- #[source]
- source: CasterError,
- from: &'static str,
- to: &'static str,
- },
-
- #[error("'{0}' can't be cast to an Arc")]
- NotArcCastable(&'static str),
-}