rust/hg-core/src/dirstate/dirstate_map.rs
changeset 46594 f88e8ae0aa8f
parent 46440 776b97179c06
child 46595 98a455a62699
--- a/rust/hg-core/src/dirstate/dirstate_map.rs	Mon Feb 15 20:13:09 2021 +0100
+++ b/rust/hg-core/src/dirstate/dirstate_map.rs	Wed Feb 17 12:06:56 2021 +0100
@@ -386,10 +386,10 @@
     }
 
     #[timed]
-    pub fn read(
+    pub fn read<'a>(
         &mut self,
-        file_contents: &[u8],
-    ) -> Result<Option<DirstateParents>, DirstateError> {
+        file_contents: &'a [u8],
+    ) -> Result<Option<&'a DirstateParents>, DirstateError> {
         if file_contents.is_empty() {
             return Ok(None);
         }