Skip to content

Commit

Permalink
mysql-srv: Remove unnecessary Clone
Browse files Browse the repository at this point in the history
The github issue requiring that Clone be implemented for Packet has been
resolved, so this commit removes it, as it is not needed.

Change-Id: Ic0b4ad68083f32dd6bf89a2cfdd45c85bbceb2f5
Reviewed-on: https://gerrit.readyset.name/c/readyset/+/5274
Tested-by: Buildkite CI
Reviewed-by: Dan Wilbanks <dan@readyset.io>
  • Loading branch information
lukoktonos committed Jun 29, 2023
1 parent c9d1585 commit e460d77
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mysql-srv/src/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,6 @@ pub fn onepacket(i: &[u8]) -> nom::IResult<&[u8], (u8, &[u8])> {
Ok((i, (seq[0], bytes)))
}

// Clone because of https://github.com/Geal/nom/issues/1008
#[derive(Clone)]
pub struct Packet<'a>(&'a [u8], Vec<u8>);

impl<'a> Packet<'a> {
Expand Down

0 comments on commit e460d77

Please sign in to comment.