From ba6655be8e4b781bfaac06282e1c7d53a56111f5 Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Mon, 26 Oct 2020 16:24:58 +0100 Subject: Fix build when serialization is not enabled. --- src/geometry/shape.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/geometry/shape.rs') diff --git a/src/geometry/shape.rs b/src/geometry/shape.rs index 54a156b..8f40fd4 100644 --- a/src/geometry/shape.rs +++ b/src/geometry/shape.rs @@ -365,6 +365,7 @@ impl Shape for Cone { #[cfg(feature = "dim3")] impl Shape for Rounded { + #[cfg(feature = "serde-serialize")] fn as_serialize(&self) -> Option<&dyn Serialize> { Some(self as &dyn Serialize) } -- cgit