Skip to content

Commit

Permalink
clippy and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
relaxolotl committed Aug 4, 2021
1 parent 5759eb0 commit fc50844
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/symbolicator/src/services/download/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ pub enum DownloadError {
Gcs(#[from] gcs::GcsError),
#[error("failed to fetch data from Sentry: {0}")]
Sentry(#[from] sentry::SentryError),
#[allow(unused)]
#[error("failed to fetch data from S3")]
S3(#[source] s3::S3Error),
/// Typically means the initial HEAD request received a non-200, non-400 response.
#[allow(unused)]
#[error("failed to download: {0}")]
Rejected(StatusCode),
}
Expand Down Expand Up @@ -247,7 +249,7 @@ impl DownloadService {
/// # Errors
/// - [`DownloadError::BadDestination`]
/// - [`DownloadError::Write`]
/// - [`DownloadError::Cancelled`]
/// - [`DownloadError::Canceled`]
async fn download_stream(
source: impl Into<RemoteDif>,
stream: impl Stream<Item = Result<impl AsRef<[u8]>, DownloadError>>,
Expand Down

0 comments on commit fc50844

Please sign in to comment.