From 3928504e38413094b176c5453ebb407b2c5b8029 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Fri, 7 Jun 2024 15:57:13 +0800 Subject: [PATCH] Bumo to 0.15.1 (#439) Signed-off-by: Xuanwo --- Cargo.toml | 2 +- src/aws/credential.rs | 2 +- src/azure/storage/loader.rs | 2 +- src/huaweicloud/obs/credential.rs | 2 +- src/tencent/credential.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 07b2f25f..5c1d55de 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" license = "Apache-2.0" name = "reqsign" repository = "https://github.com/Xuanwo/reqsign" -version = "0.15.0" +version = "0.15.1" [package.metadata.docs.rs] all-features = true diff --git a/src/aws/credential.rs b/src/aws/credential.rs index 62c30572..4e1d0436 100644 --- a/src/aws/credential.rs +++ b/src/aws/credential.rs @@ -117,7 +117,7 @@ impl DefaultLoader { let cred = self.load_inner().await?; let mut lock = self.credential.lock().expect("lock poisoned"); - *lock = cred.clone(); + lock.clone_from(&cred); Ok(cred) } diff --git a/src/azure/storage/loader.rs b/src/azure/storage/loader.rs index dda61dc7..717e2305 100644 --- a/src/azure/storage/loader.rs +++ b/src/azure/storage/loader.rs @@ -37,7 +37,7 @@ impl Loader { let cred = self.load_inner().await?; let mut lock = self.credential.lock().expect("lock poisoned"); - *lock = cred.clone(); + lock.clone_from(&cred); Ok(cred) } diff --git a/src/huaweicloud/obs/credential.rs b/src/huaweicloud/obs/credential.rs index 80fd6a15..3be2a2f9 100644 --- a/src/huaweicloud/obs/credential.rs +++ b/src/huaweicloud/obs/credential.rs @@ -46,7 +46,7 @@ impl CredentialLoader { let cred = self.load_inner().await?; let mut lock = self.credential.lock().expect("lock poisoned"); - *lock = cred.clone(); + lock.clone_from(&cred); Ok(cred) } diff --git a/src/tencent/credential.rs b/src/tencent/credential.rs index f98bb906..73ac51a6 100644 --- a/src/tencent/credential.rs +++ b/src/tencent/credential.rs @@ -62,7 +62,7 @@ impl CredentialLoader { let cred = self.load_inner().await?; let mut lock = self.credential.lock().expect("lock poisoned"); - *lock = cred.clone(); + lock.clone_from(&cred); Ok(cred) }