diff --git a/src/praetor/mod.rs b/src/praetor/mod.rs index 03b5b90..a19deef 100644 --- a/src/praetor/mod.rs +++ b/src/praetor/mod.rs @@ -31,9 +31,17 @@ mod util { } #[repr(transparent)] - #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] + #[derive(Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] pub struct SendPtr(NonNull); + impl Copy for SendPtr {} + + impl Clone for SendPtr { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + impl std::fmt::Pointer for SendPtr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { as core::fmt::Pointer>::fmt(&self.0, f)