Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit 343ee62

Browse files
committed
Make from_raw public, it's used in interface.rs in servo
1 parent a28e3e7 commit 343ee62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rust.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ impl<'a, T> Handle<'a, T> {
714714
Handle::new(&*ptr)
715715
}
716716

717-
unsafe fn from_raw(handle: RawHandle<T>) -> Self {
717+
pub unsafe fn from_raw(handle: RawHandle<T>) -> Self {
718718
Handle::from_marked_location(handle.ptr)
719719
}
720720
}
@@ -773,7 +773,7 @@ impl<'a, T> MutableHandle<'a, T> {
773773
MutableHandle::new(&mut *ptr)
774774
}
775775

776-
unsafe fn from_raw(handle: RawMutableHandle<T>) -> Self {
776+
pub unsafe fn from_raw(handle: RawMutableHandle<T>) -> Self {
777777
MutableHandle::from_marked_location(handle.ptr)
778778
}
779779

0 commit comments

Comments
 (0)