Skip to content

Commit

Permalink
chore: clippy & doclinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Mar 22, 2024
1 parent 128f717 commit 7927f0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions iroh-bytes/src/get/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ use tracing::trace;
///
/// Progress is reported as [`DownloadProgress`] through a [`ProgressSender`]. Note that the
/// [`DownloadProgress::AllDone`] event is not emitted from here, but left to an upper layer to send,
/// if desired. The [`DownloadProgress::Export`] variant will also never be sent from this
/// function.
/// if desired.
pub async fn get_to_db<
D: BaoStore,
C: FnOnce() -> F,
Expand Down
11 changes: 4 additions & 7 deletions iroh/src/client/blobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ impl Future for BlobDownloadProgress {
}
}

/// Outcome of a [`Blob::export`] operation
/// Outcome of a blob export operation.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct BlobExportOutcome {
/// The total size of the exported data.
Expand Down Expand Up @@ -582,12 +582,9 @@ impl BlobExportProgress {
let stream = stream.map(move |item| match item {
Ok(item) => {
let item = item.into();
match &item {
ExportProgress::Found { size, .. } => {
let size = size.value();
total_size.fetch_add(size, Ordering::Relaxed);
}
_ => {}
if let ExportProgress::Found { size, .. } = &item {
let size = size.value();
total_size.fetch_add(size, Ordering::Relaxed);
}

Ok(item)
Expand Down

0 comments on commit 7927f0b

Please sign in to comment.