@@ -716,7 +716,7 @@ pub mod unix_shmem {
716716 pub use default:: { MAX_MMAP_FILENAME_LEN , MmapShMem , MmapShMemProvider } ;
717717
718718 #[ cfg( doc) ]
719- use crate :: shmem :: { ShMem , ShMemProvider } ;
719+ use crate :: ShMem ;
720720
721721 /// Shared memory provider for Android, allocating and forwarding maps over unix domain sockets.
722722 #[ cfg( target_os = "android" ) ]
@@ -747,6 +747,8 @@ pub mod unix_shmem {
747747 shmctl, shmdt, shmget,
748748 } ;
749749
750+ #[ cfg( doc) ]
751+ use crate :: ShMemDescription ;
750752 use crate :: { ShMem , ShMemId , ShMemProvider } ;
751753
752754 /// The max number of bytes used when generating names for [`MmapShMem`]s.
@@ -933,8 +935,8 @@ pub mod unix_shmem {
933935 ///
934936 /// Only available on UNIX systems at the moment.
935937 ///
936- /// You likely want to pass the [`crate::shmem:: ShMemDescription`] of the returned [`ShMem`]
937- /// and reopen the shared memory in the child process using [`crate::shmem:: ShMemProvider::shmem_from_description`].
938+ /// You likely want to pass the [`ShMemDescription`] of the returned [`ShMem`]
939+ /// and reopen the shared memory in the child process using [`ShMemProvider::shmem_from_description`].
938940 ///
939941 /// # Errors
940942 ///
@@ -1333,7 +1335,7 @@ pub mod unix_shmem {
13331335 }
13341336 }
13351337
1336- /// Get a [`crate::shmem:: unix_shmem::UnixShMem`] of the existing [`ShMem`] mapping identified by id.
1338+ /// Get a [`crate::unix_shmem::UnixShMem`] of the existing [`ShMem`] mapping identified by id.
13371339 pub fn shmem_from_id_and_size ( id : ShMemId , map_size : usize ) -> Result < Self , Error > {
13381340 unsafe {
13391341 let fd: i32 = id. to_string ( ) . parse ( ) . unwrap ( ) ;
0 commit comments