diff --git a/serde_avro_fast/src/schema/self_referential.rs b/serde_avro_fast/src/schema/self_referential.rs index a60629f..7a63066 100644 --- a/serde_avro_fast/src/schema/self_referential.rs +++ b/serde_avro_fast/src/schema/self_referential.rs @@ -62,7 +62,7 @@ impl Schema { "Schema must have at least one node (the root)" ); // SAFETY: bounds checked - unsafe { NodeRef::new(self.nodes.as_ptr() as *mut _) } + NodeRef::new(self.nodes.as_ptr() as *mut _) } /// Obtain the JSON for this schema