From 2ecb156f3077f702bbe211a7896a37cd86c3fd05 Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Fri, 18 Nov 2022 16:40:11 +0800 Subject: [PATCH] fix: feature err --- crates/loro-core/src/container.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/loro-core/src/container.rs b/crates/loro-core/src/container.rs index c549d9cb..744cb650 100644 --- a/crates/loro-core/src/container.rs +++ b/crates/loro-core/src/container.rs @@ -10,7 +10,6 @@ use crate::{ InternalString, LoroValue, ID, }; -use arbitrary::Arbitrary; use serde::{Deserialize, Serialize}; use std::{any::Any, fmt::Debug}; @@ -21,7 +20,8 @@ pub mod list; pub mod map; pub mod text; -#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy, Serialize, Deserialize, Arbitrary)] +#[cfg_attr(feature = "test_utils", derive(arbitrary::Arbitrary))] +#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy, Serialize, Deserialize)] pub enum ContainerType { /// See [`crate::text::TextContent`] Text,