aboutsummaryrefslogtreecommitdiffstats
path: root/components/to_shmem/lib.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-05-10 21:20:50 -0400
committerGitHub <noreply@github.com>2019-05-10 21:20:50 -0400
commit887f43b65bacad5490365f14d54bf25af4d3234b (patch)
tree2c34539b60750aab59c068959cdc6fc8389a90c0 /components/to_shmem/lib.rs
parent81f750afa770f9bf6f2b0fff8052e5ccf047e4ed (diff)
parentdb2f6aa8ca1f23f78a497cb7cc960ff99f23ac04 (diff)
downloadservo-887f43b65bacad5490365f14d54bf25af4d3234b.tar.gz
servo-887f43b65bacad5490365f14d54bf25af4d3234b.zip
Auto merge of #23353 - emilio:gecko-sync, r=emilio
style: Sync changes from mozilla-central. See each individual commit for details. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23353) <!-- Reviewable:end -->
Diffstat (limited to 'components/to_shmem/lib.rs')
-rw-r--r--components/to_shmem/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/to_shmem/lib.rs b/components/to_shmem/lib.rs
index 96dfbb3a5e9..07c5fc9ccaa 100644
--- a/components/to_shmem/lib.rs
+++ b/components/to_shmem/lib.rs
@@ -311,7 +311,7 @@ where
/// Writes all the items in `src` into a slice in the shared memory buffer and
/// returns a pointer to the slice.
-unsafe fn to_shmem_slice<'a, T, I>(src: I, builder: &mut SharedMemoryBuilder) -> *mut [T]
+pub unsafe fn to_shmem_slice<'a, T, I>(src: I, builder: &mut SharedMemoryBuilder) -> *mut [T]
where
T: 'a + ToShmem,
I: ExactSizeIterator<Item = &'a T>,