rust/hg-cpython/src/dirstate/dispatch.rs
changeset 47683 284a20269a97
parent 47682 78f7f0d490ee
child 47692 e5fb14a07866
equal deleted inserted replaced
47682:78f7f0d490ee 47683:284a20269a97
   201 
   201 
   202     fn iter(&self) -> StateMapIter<'_> {
   202     fn iter(&self) -> StateMapIter<'_> {
   203         self.get().iter()
   203         self.get().iter()
   204     }
   204     }
   205 
   205 
   206     fn iter_directories(
   206     fn iter_tracked_dirs(
       
   207         &mut self,
       
   208     ) -> Result<
       
   209         Box<
       
   210             dyn Iterator<Item = Result<&HgPath, DirstateV2ParseError>>
       
   211                 + Send
       
   212                 + '_,
       
   213         >,
       
   214         DirstateError,
       
   215     > {
       
   216         self.get_mut().iter_tracked_dirs()
       
   217     }
       
   218 
       
   219     fn debug_iter(
   207         &self,
   220         &self,
   208     ) -> Box<
   221     ) -> Box<
   209         dyn Iterator<
   222         dyn Iterator<
   210                 Item = Result<
   223                 Item = Result<
   211                     (&HgPath, Option<Timestamp>),
   224                     (&HgPath, (u8, i32, i32, i32)),
   212                     DirstateV2ParseError,
   225                     DirstateV2ParseError,
   213                 >,
   226                 >,
   214             > + Send
   227             > + Send
   215             + '_,
   228             + '_,
   216     > {
   229     > {
   217         self.get().iter_directories()
   230         self.get().debug_iter()
   218     }
   231     }
   219 }
   232 }