diff --git a/core/src/services/oss/backend.rs b/core/src/services/oss/backend.rs index b15917112e8..1e32d8ea04e 100644 --- a/core/src/services/oss/backend.rs +++ b/core/src/services/oss/backend.rs @@ -556,13 +556,10 @@ impl Accessor for OssBackend { v.if_none_match(), v.override_content_disposition(), )?, - PresignOperation::Write(v) => self.core.oss_put_object_request( - path, - None, - v, - AsyncBody::Empty, - true, - )?, + PresignOperation::Write(v) => { + self.core + .oss_put_object_request(path, None, v, AsyncBody::Empty, true)? + } }; self.core.sign_query(&mut req, args.expire()).await?; diff --git a/core/src/services/oss/core.rs b/core/src/services/oss/core.rs index 960d58d2971..25e870f9985 100644 --- a/core/src/services/oss/core.rs +++ b/core/src/services/oss/core.rs @@ -377,13 +377,7 @@ impl OssCore { args: &OpWrite, body: AsyncBody, ) -> Result> { - let mut req = self.oss_put_object_request( - path, - size, - args, - body, - false, - )?; + let mut req = self.oss_put_object_request(path, size, args, body, false)?; self.sign(&mut req).await?; self.send(req).await diff --git a/core/src/services/oss/writer.rs b/core/src/services/oss/writer.rs index cafc95b4246..8405f78e779 100644 --- a/core/src/services/oss/writer.rs +++ b/core/src/services/oss/writer.rs @@ -48,13 +48,9 @@ impl OssWriter { #[async_trait] impl oio::MultipartUploadWrite for OssWriter { async fn write_once(&self, size: u64, body: AsyncBody) -> Result<()> { - let mut req = self.core.oss_put_object_request( - &self.path, - Some(size), - &self.op, - body, - false, - )?; + let mut req = + self.core + .oss_put_object_request(&self.path, Some(size), &self.op, body, false)?; self.core.sign(&mut req).await?;