diff --git a/src/actions/create_bucket.rs b/src/actions/create_bucket.rs index 9c28527..554e2ad 100644 --- a/src/actions/create_bucket.rs +++ b/src/actions/create_bucket.rs @@ -50,7 +50,7 @@ impl<'a> S3Action<'a> for CreateBucket<'a> { sign( time, - Method::Put, + Self::METHOD, url, self.credentials.key(), self.credentials.secret(), diff --git a/src/actions/delete_bucket.rs b/src/actions/delete_bucket.rs index 7fa1b9a..4103ba0 100644 --- a/src/actions/delete_bucket.rs +++ b/src/actions/delete_bucket.rs @@ -52,7 +52,7 @@ impl<'a> S3Action<'a> for DeleteBucket<'a> { sign( time, - Method::Delete, + Self::METHOD, url, self.credentials.key(), self.credentials.secret(), diff --git a/src/actions/delete_object.rs b/src/actions/delete_object.rs index 702cf85..b05b9dc 100644 --- a/src/actions/delete_object.rs +++ b/src/actions/delete_object.rs @@ -54,7 +54,7 @@ impl<'a> S3Action<'a> for DeleteObject<'a> { match self.credentials { Some(credentials) => sign( time, - Method::Delete, + Self::METHOD, url, credentials.key(), credentials.secret(), diff --git a/src/actions/delete_objects.rs b/src/actions/delete_objects.rs index 5ac666d..c84cef9 100644 --- a/src/actions/delete_objects.rs +++ b/src/actions/delete_objects.rs @@ -135,7 +135,7 @@ where match self.credentials { Some(credentials) => sign( time, - Method::Post, + Self::METHOD, url, credentials.key(), credentials.secret(), diff --git a/src/actions/get_object.rs b/src/actions/get_object.rs index 47f6afd..feb8d16 100644 --- a/src/actions/get_object.rs +++ b/src/actions/get_object.rs @@ -54,7 +54,7 @@ impl<'a> S3Action<'a> for GetObject<'a> { match self.credentials { Some(credentials) => sign( time, - Method::Get, + Self::METHOD, url, credentials.key(), credentials.secret(), diff --git a/src/actions/head_bucket.rs b/src/actions/head_bucket.rs index e954969..a023421 100644 --- a/src/actions/head_bucket.rs +++ b/src/actions/head_bucket.rs @@ -52,7 +52,7 @@ impl<'a> S3Action<'a> for HeadBucket<'a> { match self.credentials { Some(credentials) => sign( time, - Method::Head, + Self::METHOD, url, credentials.key(), credentials.secret(), diff --git a/src/actions/head_object.rs b/src/actions/head_object.rs index 53dce4a..1cb6a42 100644 --- a/src/actions/head_object.rs +++ b/src/actions/head_object.rs @@ -54,7 +54,7 @@ impl<'a> S3Action<'a> for HeadObject<'a> { match self.credentials { Some(credentials) => sign( time, - Method::Head, + Self::METHOD, url, credentials.key(), credentials.secret(), diff --git a/src/actions/list_objects_v2.rs b/src/actions/list_objects_v2.rs index af2d32b..f327d4d 100644 --- a/src/actions/list_objects_v2.rs +++ b/src/actions/list_objects_v2.rs @@ -208,7 +208,7 @@ impl<'a> S3Action<'a> for ListObjectsV2<'a> { match self.credentials { Some(credentials) => sign( time, - Method::Get, + Self::METHOD, url, credentials.key(), credentials.secret(), diff --git a/src/actions/multipart_upload/abort.rs b/src/actions/multipart_upload/abort.rs index 6d7dedd..88b4bd8 100644 --- a/src/actions/multipart_upload/abort.rs +++ b/src/actions/multipart_upload/abort.rs @@ -68,7 +68,7 @@ impl<'a> S3Action<'a> for AbortMultipartUpload<'a> { match self.credentials { Some(credentials) => sign( time, - Method::Delete, + Self::METHOD, url, credentials.key(), credentials.secret(), diff --git a/src/actions/multipart_upload/complete.rs b/src/actions/multipart_upload/complete.rs index 67712d8..bc7847f 100644 --- a/src/actions/multipart_upload/complete.rs +++ b/src/actions/multipart_upload/complete.rs @@ -111,7 +111,7 @@ where match self.credentials { Some(credentials) => sign( time, - Method::Post, + Self::METHOD, url, credentials.key(), credentials.secret(), diff --git a/src/actions/multipart_upload/create.rs b/src/actions/multipart_upload/create.rs index 880888e..ab895b2 100644 --- a/src/actions/multipart_upload/create.rs +++ b/src/actions/multipart_upload/create.rs @@ -83,7 +83,7 @@ impl<'a> S3Action<'a> for CreateMultipartUpload<'a> { match self.credentials { Some(credentials) => sign( time, - Method::Post, + Self::METHOD, url, credentials.key(), credentials.secret(), diff --git a/src/actions/multipart_upload/list_parts.rs b/src/actions/multipart_upload/list_parts.rs index c372afe..56d3977 100644 --- a/src/actions/multipart_upload/list_parts.rs +++ b/src/actions/multipart_upload/list_parts.rs @@ -112,7 +112,7 @@ impl<'a> S3Action<'a> for ListParts<'a> { match self.credentials { Some(credentials) => sign( time, - Method::Get, + Self::METHOD, url, credentials.key(), credentials.secret(), diff --git a/src/actions/multipart_upload/upload.rs b/src/actions/multipart_upload/upload.rs index 173d761..7299e50 100644 --- a/src/actions/multipart_upload/upload.rs +++ b/src/actions/multipart_upload/upload.rs @@ -85,7 +85,7 @@ impl<'a> S3Action<'a> for UploadPart<'a> { match self.credentials { Some(credentials) => sign( time, - Method::Put, + Self::METHOD, url, credentials.key(), credentials.secret(), diff --git a/src/actions/put_object.rs b/src/actions/put_object.rs index 723f289..1436e23 100644 --- a/src/actions/put_object.rs +++ b/src/actions/put_object.rs @@ -54,7 +54,7 @@ impl<'a> S3Action<'a> for PutObject<'a> { match self.credentials { Some(credentials) => sign( time, - Method::Put, + Self::METHOD, url, credentials.key(), credentials.secret(),