Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
aajtodd committed Jul 16, 2024
1 parent 0ef2422 commit 741ab7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ jobs:
components: rustfmt
- uses: Swatinem/rust-cache@v2
# Check fmt
- name: "rustfmt --check"
- name: "cargo fmt --check"
# Workaround for rust-lang/cargo#7732
run: |
if ! rustfmt --check --edition 2021 $(git ls-files '*.rs'); then
printf "Please run \`rustfmt --edition 2021 \$(git ls-files '*.rs')\` to fix rustfmt errors.\nSee CONTRIBUTING.md for more details.\n" >&2
if ! cargo fmt --check; then
printf "Please run \`cargo fmt` to fix rustfmt errors.\nSee CONTRIBUTING.md for more details.\n" >&2
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion aws-s3-transfer-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub mod download;
pub mod error;

/// Types and helpers for I/O
#[allow(unused)] // FIXME(aws-sdk-rust#1159) - remove when consumed internally by other modules
#[allow(unused)] // FIXME(aws-sdk-rust#1159) - remove when consumed internally by other modules
pub mod io;

/// Abstractions for downloading objects from Amazon S3
Expand Down
2 changes: 1 addition & 1 deletion aws-s3-transfer-manager/src/upload/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl UploadRequest {
}

/// Split the body from the request by taking it and replacing it with the default.
#[allow(dead_code)] // FIXME(aws-sdk-rust#1159) - remove when consumed internally by other modules
#[allow(dead_code)] // FIXME(aws-sdk-rust#1159) - remove when consumed internally by other modules
pub(crate) fn take_body(&mut self) -> InputStream {
mem::take(&mut self.body)
}
Expand Down

0 comments on commit 741ab7e

Please sign in to comment.