This repository was archived by the owner on Jul 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " proton-api-rs"
33authors = [" Leander Beernaert <lbb-dev@pm.me>" ]
4- version = " 0.9 .0"
4+ version = " 0.10 .0"
55edition = " 2021"
66license = " AGPL-3.0-only"
77description = " Unofficial implemention of proton REST API in rust"
@@ -42,7 +42,7 @@ optional = true
4242[dev-dependencies ]
4343env_logger = " 0.10"
4444tokio = {version =" 1" , features = [" full" ]}
45- wry = {version = " 0.28" }
45+ # wry = {version = "0.28"}
4646
4747[[example ]]
4848name = " user_id"
@@ -52,6 +52,7 @@ required-features = ["http-reqwest"]
5252name = " user_id_sync"
5353required-features = [" http-ureq" ]
5454
55- [[example ]]
56- name = " captcha"
57- required-features = [" http-ureq" ]
55+ # Enable wry dependency when trying this example.
56+ # [[example]]
57+ # name = "captcha"
58+ # required-features = ["http-ureq"]
Original file line number Diff line number Diff line change @@ -95,13 +95,15 @@ pub enum Error {
9595 Connection ( #[ source] anyhow:: Error ) ,
9696 #[ error( "Request/Response body error: {0}" ) ]
9797 Request ( #[ source] anyhow:: Error ) ,
98+ #[ error( "Encoding/Decoding error: {0}" ) ]
99+ EncodeOrDecode ( #[ source] anyhow:: Error ) ,
98100 #[ error( "Unexpected error occurred: {0}" ) ]
99101 Other ( #[ source] anyhow:: Error ) ,
100102}
101103
102104impl From < serde_json:: Error > for Error {
103105 fn from ( value : serde_json:: Error ) -> Self {
104- Self :: Request ( value. into ( ) )
106+ Self :: EncodeOrDecode ( value. into ( ) )
105107 }
106108}
107109
You can’t perform that action at this time.
0 commit comments