aboutsummaryrefslogtreecommitdiff
path: root/src/v1_15_2.rs
diff options
context:
space:
mode:
authorJoey Sacchini <joey@sacchini.net>2020-10-20 10:52:32 -0400
committerJoey Sacchini <joey@sacchini.net>2020-10-20 10:52:32 -0400
commit3d9c565fa8a09b010695396082d4875586ad05bc (patch)
treea7767c9ae2021bb15644f1dabe5f0d07e13cbcc0 /src/v1_15_2.rs
parent792f301ceae027bf90317b8aff9f1f59294d95bc (diff)
downloadmcproto-rs-3d9c565fa8a09b010695396082d4875586ad05bc.tar.gz
mcproto-rs-3d9c565fa8a09b010695396082d4875586ad05bc.tar.bz2
mcproto-rs-3d9c565fa8a09b010695396082d4875586ad05bc.zip
fix no_std for EntityMetadata
Diffstat (limited to 'src/v1_15_2.rs')
-rw-r--r--src/v1_15_2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/v1_15_2.rs b/src/v1_15_2.rs
index a78cd17..c3ca3b2 100644
--- a/src/v1_15_2.rs
+++ b/src/v1_15_2.rs
@@ -2979,7 +2979,7 @@ impl Deserialize for EntityMetadata {
}
}
-#[cfg(test)]
+#[cfg(all(test, feature = "std"))]
impl TestRandom for EntityMetadata {
fn test_gen_random() -> Self {
let n_fields = rand::random::<usize>() % 10;