Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Nov 19, 2024
1 parent 6481cd9 commit 947501a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion aws-s3-transfer-manager/src/io/aggregated_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,3 @@ impl Buf for AggregatedBytes {
self.0.copy_to_bytes(len)
}
}

4 changes: 2 additions & 2 deletions aws-s3-transfer-manager/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* SPDX-License-Identifier: Apache-2.0
*/

/// Download Body Type
pub mod aggregated_bytes;
pub(crate) mod part_reader;
mod path_body;
mod stream;
/// Download Body Type
pub mod aggregated_bytes;

/// Error types related to I/O abstractions
pub mod error;
Expand Down
2 changes: 1 addition & 1 deletion aws-s3-transfer-manager/src/operation/download/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use std::cmp::Ordering;
use std::collections::BinaryHeap;
use tokio::sync::mpsc;

use crate::io::aggregated_bytes::AggregatedBytes;
use super::chunk_meta::ChunkMetadata;
use crate::io::aggregated_bytes::AggregatedBytes;

/// Stream of binary data representing an Amazon S3 Object's contents.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ impl From<GetObjectOutput> for ChunkMetadata {
}
}


impl RequestIdExt for ChunkMetadata {
fn extended_request_id(&self) -> Option<&str> {
self._extended_request_id.as_deref()
Expand Down
4 changes: 3 additions & 1 deletion aws-s3-transfer-manager/src/operation/download/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ async fn discover_obj_with_head(
Some(range) => match range {
ByteRange::Inclusive(start, end) => start..=end,
ByteRange::AllFrom(start) => start..=object_meta.content_length(),
ByteRange::Last(n) => (object_meta.content_length() - n + 1)..=object_meta.content_length(),
ByteRange::Last(n) => {
(object_meta.content_length() - n + 1)..=object_meta.content_length()
}
},
None => 0..=object_meta.content_length(),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ impl RequestId for ObjectMetadata {
}
}


#[cfg(test)]
mod tests {
use super::ObjectMetadata;
Expand Down

0 comments on commit 947501a

Please sign in to comment.