aboutsummaryrefslogtreecommitdiff
path: root/src/libs/intertrait/cast/error.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-11-10 21:48:55 +0100
committerHampusM <hampus@hampusmat.com>2022-11-10 21:49:46 +0100
commit4e8951ff740bddb39d9782c18ed85898d0b978fb (patch)
tree06e9c32e2f95988e4d91bc0ac684ffe5f4fd14d7 /src/libs/intertrait/cast/error.rs
parentad908d2f82eb10e0f0dbc3a1b01e804b8a1ff6f9 (diff)
refactor: improve type param names, docs & more of casting
Diffstat (limited to 'src/libs/intertrait/cast/error.rs')
-rw-r--r--src/libs/intertrait/cast/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/intertrait/cast/error.rs b/src/libs/intertrait/cast/error.rs
index e6d86a5..d253fc5 100644
--- a/src/libs/intertrait/cast/error.rs
+++ b/src/libs/intertrait/cast/error.rs
@@ -6,7 +6,7 @@ pub enum CastError
#[error("Failed to get caster")]
GetCasterFailed(#[from] GetCasterError),
- #[error("Failed to cast from trait {from} to trait {to}")]
+ #[error("Failed to cast from {from} to {to}")]
CastFailed
{
#[source]
@@ -15,6 +15,6 @@ pub enum CastError
to: &'static str,
},
- #[error("Trait '{0}' can't be cast to Arc")]
+ #[error("'{0}' can't be cast to an Arc")]
NotArcCastable(&'static str),
}