From 3d9c565fa8a09b010695396082d4875586ad05bc Mon Sep 17 00:00:00 2001 From: Joey Sacchini Date: Tue, 20 Oct 2020 10:52:32 -0400 Subject: fix no_std for EntityMetadata --- src/v1_15_2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::() % 10; -- cgit