rust/hg-core/src/dirstate/dirstate_map.rs
changeset 47101 5d62243c7732
parent 47093 787ff5d21bcd
child 47105 ba17a2ee85ac
--- a/rust/hg-core/src/dirstate/dirstate_map.rs	Tue Apr 06 21:07:12 2021 +0200
+++ b/rust/hg-core/src/dirstate/dirstate_map.rs	Mon Apr 12 14:43:45 2021 +0200
@@ -5,6 +5,7 @@
 // This software may be used and distributed according to the terms of the
 // GNU General Public License version 2 or any later version.
 
+use crate::dirstate::parsers::Timestamp;
 use crate::errors::HgError;
 use crate::revlog::node::NULL_NODE;
 use crate::{
@@ -22,7 +23,6 @@
 use std::convert::TryInto;
 use std::iter::FromIterator;
 use std::ops::Deref;
-use std::time::Duration;
 
 pub type FileFoldMap = FastHashMap<HgPathBuf, HgPathBuf>;
 
@@ -389,7 +389,7 @@
     pub fn pack(
         &mut self,
         parents: DirstateParents,
-        now: Duration,
+        now: Timestamp,
     ) -> Result<Vec<u8>, DirstateError> {
         let packed =
             pack_dirstate(&mut self.state_map, &self.copy_map, parents, now)?;