diff --git a/src/agent.rs b/src/agent.rs index b1bc7c16ca8..23495dce17f 100644 --- a/src/agent.rs +++ b/src/agent.rs @@ -20,11 +20,6 @@ enum ToWorker { Destroy, } -impl Transferable for ToWorker -where - T: Serialize + for <'de> Deserialize<'de>, -{ -} #[derive(Serialize, Deserialize)] enum FromWorker { @@ -33,12 +28,6 @@ enum FromWorker { ProcessOutput(HandlerId, T), } -impl Transferable for FromWorker -where - T: Serialize + for <'de> Deserialize<'de>, -{ -} - /// Represents a message which you could send to an agent. pub trait Transferable @@ -47,6 +36,8 @@ where { } +impl Transferable for T where T: Serialize + for <'de> Deserialize<'de> {} + trait Packed { fn pack(&self) -> Vec; fn unpack(data: &Vec) -> Self;