aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;