aboutsummaryrefslogtreecommitdiff
path: root/src/errors/ptr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors/ptr.rs')
-rw-r--r--src/errors/ptr.rs21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/errors/ptr.rs b/src/errors/ptr.rs
index 56621c1..1db10c7 100644
--- a/src/errors/ptr.rs
+++ b/src/errors/ptr.rs
@@ -1,8 +1,9 @@
//! Smart pointer alias errors.
-/// Error type for [`SomePtr`].
+/// Error type for [`SomePtr`] and [`SomeThreadsafePtr`].
///
/// [`SomePtr`]: crate::ptr::SomePtr
+/// [`SomeThreadsafePtr`]: crate::ptr::SomeThreadsafePtr
#[derive(thiserror::Error, Debug)]
pub enum SomePtrError
{
@@ -17,21 +18,3 @@ pub enum SomePtrError
found: &'static str,
},
}
-
-/// Error type for [`SomeThreadsafePtr`].
-///
-/// [`SomeThreadsafePtr`]: crate::ptr::SomeThreadsafePtr
-#[derive(thiserror::Error, Debug)]
-pub enum SomeThreadsafePtrError
-{
- /// Tried to get as a wrong threadsafe smart pointer type.
- #[error("Wrong threadsafe smart pointer type. Expected {expected}, found {found}")]
- WrongPtrType
- {
- /// The expected smart pointer type.
- expected: &'static str,
-
- /// The found smart pointer type.
- found: &'static str,
- },
-}