From 42ce6c8c75852416d8ec7022ede6a66a8ecbc815 Mon Sep 17 00:00:00 2001 From: Thomas BESSOU Date: Sun, 10 Mar 2024 15:04:40 +0100 Subject: [PATCH] remove unnecessary nested `unsafe` --- serde_avro_fast/src/schema/self_referential.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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