diff --git a/src/proto/single/cmd.rs b/src/proto/single/cmd.rs index 7adbe117..800d3dd2 100644 --- a/src/proto/single/cmd.rs +++ b/src/proto/single/cmd.rs @@ -246,13 +246,6 @@ impl FaktoryCommand for Push { pub struct PushBulk(Vec); -impl Deref for PushBulk { - type Target = Vec; - fn deref(&self) -> &Self::Target { - &self.0 - } -} - impl From> for PushBulk { fn from(jobs: Vec) -> Self { PushBulk(jobs) @@ -262,7 +255,7 @@ impl From> for PushBulk { impl FaktoryCommand for PushBulk { fn issue(&self, w: &mut W) -> Result<(), Error> { w.write_all(b"PUSHB ")?; - serde_json::to_writer(&mut *w, &**self).map_err(Error::Serialization)?; + serde_json::to_writer(&mut *w, &self.0).map_err(Error::Serialization)?; Ok(w.write_all(b"\r\n")?) } }