Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Mar 14, 2023
1 parent 1aa3d76 commit 6f86944
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<S: LfsStorage>(fs: &Filesystem<'_, S>, path: &Path) -> Result<(), Error> {
// hprintln!("preparing {:?}", core::str::from_utf8(path).unwrap()).ok();
let path_bytes = path.as_ref().as_bytes();

Expand Down
5 changes: 2 additions & 3 deletions src/store/filestore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,8 @@ impl<S: Store> ClientFilestore<S> {
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
Expand Down

0 comments on commit 6f86944

Please sign in to comment.