From 9e91eaf63aed340a2c0a61ad8f70e9a7883e3aba Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 14 Feb 2023 00:09:13 -0500 Subject: Rust API: Misc changes and improvements --- rust/src/rc.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'rust/src/rc.rs') diff --git a/rust/src/rc.rs b/rust/src/rc.rs index 4ffecb3f..2e4086e3 100644 --- a/rust/src/rc.rs +++ b/rust/src/rc.rs @@ -48,6 +48,7 @@ pub struct Ref { } impl Ref { + /// Safety: You need to make sure wherever you got the contents from incremented the ref count already. Anywhere the core passes out an object to the API does this. pub(crate) unsafe fn new(contents: T) -> Self { Self { contents } } -- cgit v1.3.1