diff --git a/redis/src/cluster/config.rs b/redis/src/cluster/config.rs index cb7e042..076925f 100644 --- a/redis/src/cluster/config.rs +++ b/redis/src/cluster/config.rs @@ -59,7 +59,7 @@ pub struct Config { /// setup where read scalability is needed. /// /// Default is `false`. - #[serde(default)] + #[cfg_attr(feature = "serde", serde(default))] pub read_from_replicas: bool, }