diff --git a/src/store.rs b/src/store.rs index e6e86cb5349..59b3b695f00 100644 --- a/src/store.rs +++ b/src/store.rs @@ -480,10 +480,7 @@ macro_rules! store { } // TODO: replace this with "fs.create_dir_all(path.parent())" -pub fn create_directories<'s, S: LfsStorage>( - fs: &Filesystem<'s, S>, - path: &Path, -) -> Result<(), Error> { +pub fn create_directories(fs: &Filesystem<'_, S>, path: &Path) -> Result<(), Error> { // hprintln!("preparing {:?}", core::str::from_utf8(path).unwrap()).ok(); let path_bytes = path.as_ref().as_bytes(); diff --git a/src/store/filestore.rs b/src/store/filestore.rs index 931ee006cec..a8168bf0b36 100644 --- a/src/store/filestore.rs +++ b/src/store/filestore.rs @@ -294,9 +294,8 @@ impl ClientFilestore { true } }) - .skip(start_at) - // take first entry that meets requirements - .next() + // take nth entry that meets requirements + .nth(start_at) // if there is an entry, construct the state that needs storing out of it, // and return the file's contents. // the client, and return both the entry and the state