Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

Commit 72f2006

Browse files
committed
chore: Fix github pipeline
1 parent 11369b9 commit 72f2006

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ jobs:
5555
- name: Setup Rust
5656
uses: dtolnay/rust-toolchain@stable
5757

58-
- name: Check formatting
58+
- name: Run Clippy
5959
run: cargo clippy -- -D warnings
6060

Cargo.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ readme = "README.md"
1111
keywords = ["proton", "rest", "api"]
1212
categories = ["api-bindings"]
1313

14-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
15-
1614
[dependencies]
1715
go-srp = {path = "go-srp", version = "0.1.5"}
1816
thiserror = "1"
@@ -42,17 +40,11 @@ optional = true
4240
[dev-dependencies]
4341
env_logger = "0.10"
4442
tokio = {version ="1", features = ["full"]}
45-
#wry = {version = "0.28"}
4643

4744
[[example]]
4845
name = "user_id"
4946
required-features = ["http-reqwest"]
5047

5148
[[example]]
5249
name = "user_id_sync"
53-
required-features = ["http-ureq"]
54-
55-
#Enable wry dependency when trying this example.
56-
#[[example]]
57-
#name = "captcha"
58-
#required-features = ["http-ureq"]
50+
required-features = ["http-ureq"]

examples/captcha/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target
2+
/Cargo.lock
3+
.idea

examples/captcha/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "captcha"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]
9+
wry = {version = "0.28"}
10+
proton-api-rs = {version ="0.10", features=["http-ureq"], path = "../../"}
11+
env_logger = "0.10"
File renamed without changes.

src/clientv2/request_repeater.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ impl RequestRepeater {
101101

102102
// Execute request again
103103
return request.execute_sync(client, self);
104-
} else if api_err.http_code == 422 && api_err.http_code == 9001 {
105-
//TODO: Handle captcha .....
106104
}
107105
}
108106
Err(original_error)

0 commit comments

Comments
 (0)