Fix build when serialization is not enabled.

This commit is contained in:
Crozet Sébastien
2020-10-26 16:24:58 +01:00
parent 3fd4a62a2e
commit ba6655be8e
2 changed files with 2 additions and 1 deletions

View File

@@ -365,6 +365,7 @@ impl Shape for Cone {
#[cfg(feature = "dim3")]
impl Shape for Rounded<Cylinder> {
#[cfg(feature = "serde-serialize")]
fn as_serialize(&self) -> Option<&dyn Serialize> {
Some(self as &dyn Serialize)
}