Skip to content

Commit

Permalink
Use the METHOD const in the sign_with_time methods
Browse files Browse the repository at this point in the history
  • Loading branch information
aleb committed Nov 22, 2024
1 parent 963ab85 commit 5f002b6
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/actions/create_bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl<'a> S3Action<'a> for CreateBucket<'a> {

sign(
time,
Method::Put,
Self::METHOD,

Check warning on line 53 in src/actions/create_bucket.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/create_bucket.rs#L53

Added line #L53 was not covered by tests
url,
self.credentials.key(),
self.credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/delete_bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl<'a> S3Action<'a> for DeleteBucket<'a> {

sign(
time,
Method::Delete,
Self::METHOD,

Check warning on line 55 in src/actions/delete_bucket.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/delete_bucket.rs#L55

Added line #L55 was not covered by tests
url,
self.credentials.key(),
self.credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/delete_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl<'a> S3Action<'a> for DeleteObject<'a> {
match self.credentials {
Some(credentials) => sign(
time,
Method::Delete,
Self::METHOD,

Check warning on line 57 in src/actions/delete_object.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/delete_object.rs#L57

Added line #L57 was not covered by tests
url,
credentials.key(),
credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/delete_objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ where
match self.credentials {
Some(credentials) => sign(
time,
Method::Post,
Self::METHOD,

Check warning on line 138 in src/actions/delete_objects.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/delete_objects.rs#L138

Added line #L138 was not covered by tests
url,
credentials.key(),
credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/get_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl<'a> S3Action<'a> for GetObject<'a> {
match self.credentials {
Some(credentials) => sign(
time,
Method::Get,
Self::METHOD,

Check warning on line 57 in src/actions/get_object.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/get_object.rs#L57

Added line #L57 was not covered by tests
url,
credentials.key(),
credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/head_bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl<'a> S3Action<'a> for HeadBucket<'a> {
match self.credentials {
Some(credentials) => sign(
time,
Method::Head,
Self::METHOD,

Check warning on line 55 in src/actions/head_bucket.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/head_bucket.rs#L55

Added line #L55 was not covered by tests
url,
credentials.key(),
credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/head_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl<'a> S3Action<'a> for HeadObject<'a> {
match self.credentials {
Some(credentials) => sign(
time,
Method::Head,
Self::METHOD,

Check warning on line 57 in src/actions/head_object.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/head_object.rs#L57

Added line #L57 was not covered by tests
url,
credentials.key(),
credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/list_objects_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl<'a> S3Action<'a> for ListObjectsV2<'a> {
match self.credentials {
Some(credentials) => sign(
time,
Method::Get,
Self::METHOD,

Check warning on line 211 in src/actions/list_objects_v2.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/list_objects_v2.rs#L211

Added line #L211 was not covered by tests
url,
credentials.key(),
credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/multipart_upload/abort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl<'a> S3Action<'a> for AbortMultipartUpload<'a> {
match self.credentials {
Some(credentials) => sign(
time,
Method::Delete,
Self::METHOD,

Check warning on line 71 in src/actions/multipart_upload/abort.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/multipart_upload/abort.rs#L71

Added line #L71 was not covered by tests
url,
credentials.key(),
credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/multipart_upload/complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ where
match self.credentials {
Some(credentials) => sign(
time,
Method::Post,
Self::METHOD,

Check warning on line 114 in src/actions/multipart_upload/complete.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/multipart_upload/complete.rs#L114

Added line #L114 was not covered by tests
url,
credentials.key(),
credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/multipart_upload/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl<'a> S3Action<'a> for CreateMultipartUpload<'a> {
match self.credentials {
Some(credentials) => sign(
time,
Method::Post,
Self::METHOD,

Check warning on line 86 in src/actions/multipart_upload/create.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/multipart_upload/create.rs#L86

Added line #L86 was not covered by tests
url,
credentials.key(),
credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/multipart_upload/list_parts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl<'a> S3Action<'a> for ListParts<'a> {
match self.credentials {
Some(credentials) => sign(
time,
Method::Get,
Self::METHOD,

Check warning on line 115 in src/actions/multipart_upload/list_parts.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/multipart_upload/list_parts.rs#L115

Added line #L115 was not covered by tests
url,
credentials.key(),
credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/multipart_upload/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl<'a> S3Action<'a> for UploadPart<'a> {
match self.credentials {
Some(credentials) => sign(
time,
Method::Put,
Self::METHOD,

Check warning on line 88 in src/actions/multipart_upload/upload.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/multipart_upload/upload.rs#L88

Added line #L88 was not covered by tests
url,
credentials.key(),
credentials.secret(),
Expand Down
2 changes: 1 addition & 1 deletion src/actions/put_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl<'a> S3Action<'a> for PutObject<'a> {
match self.credentials {
Some(credentials) => sign(
time,
Method::Put,
Self::METHOD,

Check warning on line 57 in src/actions/put_object.rs

View check run for this annotation

Codecov / codecov/patch

src/actions/put_object.rs#L57

Added line #L57 was not covered by tests
url,
credentials.key(),
credentials.secret(),
Expand Down

0 comments on commit 5f002b6

Please sign in to comment.