Skip to content

Commit 549c9d7

Browse files
committed
clippy
1 parent 3cfc77c commit 549c9d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/remote.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ impl Remote {
718718
.await
719719
.map_err(|e| e!(GetError::LocalFailure, e.into()))?,
720720
)
721-
.map_err(|e| e!(GetError::BadRequest, e.into()))?;
721+
.map_err(|e| e!(GetError::BadRequest, e))?;
722722
// let mut hash_seq = LazyHashSeq::new(store.blobs().clone(), root);
723723
loop {
724724
let at_start_child = match next_child {

src/get/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ pub async fn get_hash_seq_and_sizes(
247247
}
248248
let (mut curr, hash_seq) = at_blob_content.concatenate_into_vec().await?;
249249
let hash_seq =
250-
HashSeq::try_from(Bytes::from(hash_seq)).map_err(|e| e!(GetError::BadRequest, e.into()))?;
250+
HashSeq::try_from(Bytes::from(hash_seq)).map_err(|e| e!(GetError::BadRequest, e))?;
251251
let mut sizes = Vec::with_capacity(hash_seq.len());
252252
let closing = loop {
253253
match curr.next() {

0 commit comments

Comments
 (0)