diff --git a/openraft/src/lib.rs b/openraft/src/lib.rs index 103cceac8..3f63c0dd0 100644 --- a/openraft/src/lib.rs +++ b/openraft/src/lib.rs @@ -172,13 +172,13 @@ impl AppData for T where T: Clone + Send + Sync + 'static {} /// /// The trait is automatically implemented for all types which satisfy its supertraits. #[cfg(feature = "serde")] -pub trait AppDataResponse: Clone + Send + Sync + serde::Serialize + serde::de::DeserializeOwned + 'static {} +pub trait AppDataResponse: Send + Sync + serde::Serialize + serde::de::DeserializeOwned + 'static {} #[cfg(feature = "serde")] -impl AppDataResponse for T where T: Clone + Send + Sync + serde::Serialize + serde::de::DeserializeOwned + 'static {} +impl AppDataResponse for T where T: Send + Sync + serde::Serialize + serde::de::DeserializeOwned + 'static {} #[cfg(not(feature = "serde"))] -pub trait AppDataResponse: Clone + Send + Sync + 'static {} +pub trait AppDataResponse: Send + Sync + 'static {} #[cfg(not(feature = "serde"))] -impl AppDataResponse for T where T: Clone + Send + Sync + 'static {} +impl AppDataResponse for T where T: Send + Sync + 'static {}