diff options
author | Joey Sacchini <joey@sacchini.net> | 2020-10-20 10:52:32 -0400 |
---|---|---|
committer | Joey Sacchini <joey@sacchini.net> | 2020-10-20 10:52:32 -0400 |
commit | 3d9c565fa8a09b010695396082d4875586ad05bc (patch) | |
tree | a7767c9ae2021bb15644f1dabe5f0d07e13cbcc0 /src/v1_15_2.rs | |
parent | 792f301ceae027bf90317b8aff9f1f59294d95bc (diff) | |
download | mcproto-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.rs | 2 |
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; |