aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Sacchini <joey@sacchini.net>2020-10-19 12:45:26 -0400
committerJoey Sacchini <joey@sacchini.net>2020-10-19 12:45:26 -0400
commit5817bb92e1e32ec767ad11abd49f2c7153703ea8 (patch)
tree87b91c0c4797c9d6c7f18cf315e797dc929fc2c0
parenta673089adf23594c6ccd13f4bfdcaf86601148c4 (diff)
downloadmcproto-rs-5817bb92e1e32ec767ad11abd49f2c7153703ea8.tar.gz
mcproto-rs-5817bb92e1e32ec767ad11abd49f2c7153703ea8.tar.bz2
mcproto-rs-5817bb92e1e32ec767ad11abd49f2c7153703ea8.zip
only need one struct def for raw data
-rw-r--r--src/protocol.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/protocol.rs b/src/protocol.rs
index 7a2002d..fb2c1fb 100644
--- a/src/protocol.rs
+++ b/src/protocol.rs
@@ -339,14 +339,6 @@ macro_rules! define_protocol {
}
}
- #[cfg(feature = "std")]
- #[derive(PartialEq, Debug)]
- pub struct $rawdt<'a, T> {
- pub data: &'a [u8],
- _typ: std::marker::PhantomData<T>
- }
-
- #[cfg(not(feature = "std"))]
#[derive(PartialEq, Debug)]
pub struct $rawdt<'a, T> {
pub data: &'a [u8],