Skip to content

Commit 7d5d731

Browse files
authored
Merge pull request #49 from progval/mmap-safety
Link to mmap's safety documentation
2 parents 548ef76 + fa090fe commit 7d5d731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

epserde/src/deser/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub trait Deserialize: DeserializeInner {
165165
///
166166
/// # Safety
167167
///
168-
/// See the [trait documentation](Deserialize).
168+
/// See the [trait documentation](Deserialize) and [mmap's `with_file`'s documentation](mmap_rs::MmapOptions::with_file).
169169
#[cfg(feature = "mmap")]
170170
unsafe fn load_mmap<'a>(
171171
path: impl AsRef<Path>,
@@ -215,7 +215,7 @@ pub trait Deserialize: DeserializeInner {
215215
///
216216
/// # Safety
217217
///
218-
/// See the [trait documentation](Deserialize).
218+
/// See the [trait documentation](Deserialize) and [mmap's `with_file`'s documentation](mmap_rs::MmapOptions::with_file).
219219
#[cfg(feature = "mmap")]
220220
unsafe fn mmap<'a>(
221221
path: impl AsRef<Path>,

0 commit comments

Comments
 (0)