Skip to content

Commit 6f86944

Browse files
Fix clippy warnings
1 parent 1aa3d76 commit 6f86944

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/store.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,7 @@ macro_rules! store {
480480
}
481481

482482
// TODO: replace this with "fs.create_dir_all(path.parent())"
483-
pub fn create_directories<'s, S: LfsStorage>(
484-
fs: &Filesystem<'s, S>,
485-
path: &Path,
486-
) -> Result<(), Error> {
483+
pub fn create_directories<S: LfsStorage>(fs: &Filesystem<'_, S>, path: &Path) -> Result<(), Error> {
487484
// hprintln!("preparing {:?}", core::str::from_utf8(path).unwrap()).ok();
488485
let path_bytes = path.as_ref().as_bytes();
489486

src/store/filestore.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,8 @@ impl<S: Store> ClientFilestore<S> {
294294
true
295295
}
296296
})
297-
.skip(start_at)
298-
// take first entry that meets requirements
299-
.next()
297+
// take nth entry that meets requirements
298+
.nth(start_at)
300299
// if there is an entry, construct the state that needs storing out of it,
301300
// and return the file's contents.
302301
// the client, and return both the entry and the state

0 commit comments

Comments
 (0)