From 6f869442551605c7dc8f6b81bd2d6c509b3eb22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Tue, 14 Mar 2023 11:16:42 +0100 Subject: [PATCH] Fix clippy warnings --- src/store.rs | 5 +---- src/store/filestore.rs | 5 ++--- 2 files changed, 3 insertions(+), 7 deletions(-) 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