summaryrefslogtreecommitdiff
path: root/rust/src/rc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/rc.rs')
-rw-r--r--rust/src/rc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/rc.rs b/rust/src/rc.rs
index 84168876..f6abb036 100644
--- a/rust/src/rc.rs
+++ b/rust/src/rc.rs
@@ -55,7 +55,7 @@ impl<T: RefCountable> Ref<T> {
Self { contents }
}
- pub(crate) unsafe fn into_raw(obj: Self) -> T {
+ pub unsafe fn into_raw(obj: Self) -> T {
let res = ptr::read(&obj.contents);
mem::forget(obj);
res