Skip to content

Commit a370e2d

Browse files
committed
doc
1 parent 9c5bf3c commit a370e2d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "alibaba-cloud-sdk-rust"
33
license = "MIT"
4-
version = "0.1.16"
4+
version = "0.1.17"
55
edition = "2018"
66
authors = ["wandercn<wander@rustpub.com>"]
77
description = "Alibaba Cloud SDK for Rust"
@@ -21,5 +21,5 @@ ring = "0.17.14"
2121
base64 = "0.22.1"
2222
uuid = { version = "1.0.0", features = [ "v4", "fast-rng", "macro-diagnostics" ] }
2323
anyhow= "1.0"
24-
thiserror = "1.0"
24+
thiserror = "2.0.12"
2525

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,23 @@
1515
```rust
1616
use alibaba_cloud_sdk_rust::services::dysmsapi;
1717
use gostd::strings;
18+
use anyhow::Result;
1819

1920
const AliyunSmsServerRegion: &str = "cn-hangzhou";
2021
const AliyunSmsAccessKeyID: &str = "LTAI4FwqPxiAxxxxxx";
2122
const AliyunSmsAccessKeySecret: &str = "xxxxx0FJqHTTLwDUuhxxxxx";
2223
const AliyunSmsReportTempleateCode: &str = "SMS_226xxxx"; // 通知模版
2324
const AliyunSmsSignName: &str = "阿里云"; // 短信署名
2425

25-
fn main()->Result<(), std::io::Error>{
26+
fn main()->(){
2627
let phoneNumber="1391212xxxx";
2728
match SendSMS(phoneNumber) {
2829
Ok(response)=> println!("{:?}",response),
2930
Err(err)=>println!("{}",err),
3031
}
3132
}
3233

33-
fn SendSMS(phoneNumber: &str) -> Result<(), std::io::Error> {
34+
fn SendSMS(phoneNumber: &str) -> Result<()> {
3435
let mut client = dysmsapi::Client::NewClientWithAccessKey(
3536
AliyunSmsServerRegion,
3637
AliyunSmsAccessKeyID,

0 commit comments

Comments
 (0)