diff --git a/core/Cargo.toml b/core/Cargo.toml index 4b5a0c37df87..32665689c98b 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -297,7 +297,9 @@ dashmap = { version = "5.4", optional = true } # for services-etcd etcd-client = { version = "0.12", optional = true, features = ["tls"] } # for services-foundationdb -foundationdb = { version = "0.8.0", features = ["embedded-fdb-include"], optional = true } +foundationdb = { version = "0.8.0", features = [ + "embedded-fdb-include", +], optional = true } # for services-hdfs hdrs = { version = "0.3.0", optional = true, features = ["async_file"] } # for services-upyun diff --git a/core/src/services/azblob/core.rs b/core/src/services/azblob/core.rs index 91554fe1d355..88778877e486 100644 --- a/core/src/services/azblob/core.rs +++ b/core/src/services/azblob/core.rs @@ -386,7 +386,7 @@ impl AzblobCore { // refer to https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs=microsoft-entra-id let p = build_abs_path(&self.root, path); let encoded_block_id: String = - byte_serialize(BASE64_STANDARD.encode(block_id.to_string()).as_bytes()).collect(); + byte_serialize(BASE64_STANDARD.encode(block_id).as_bytes()).collect(); let url = format!( "{}/{}/{}?comp=block&blockid={}", self.endpoint, @@ -455,8 +455,7 @@ impl AzblobCore { .into_iter() .map(|block_id| { let encoded_block_id: String = - byte_serialize(BASE64_STANDARD.encode(block_id.to_string()).as_bytes()) - .collect(); + byte_serialize(BASE64_STANDARD.encode(block_id).as_bytes()).collect(); encoded_block_id }) .collect(),