Skip to content

Commit

Permalink
remove unnecessary nested unsafe
Browse files Browse the repository at this point in the history
Ten0 committed Mar 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 603207c commit 42ce6c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serde_avro_fast/src/schema/self_referential.rs
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 42ce6c8

Please sign in to comment.