Skip to content

Commit f125aee

Browse files
chore: Updates thiserror and fixes cargo deny
This updates our deny.toml to remove unused exceptions and change which unicode license is being allowed. I also fixed a small clippy error that showed up Signed-off-by: Taylor Thomas <[email protected]>
1 parent 28c2ba0 commit f125aee

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ reqwest = { version = "0.12.4", default-features = false, features = [
5151
serde_json = "1.0"
5252
serde = { version = "1.0", features = ["derive"] }
5353
sha2 = "0.10"
54-
thiserror = "1.0"
54+
thiserror = "2"
5555
tokio = { version = "1.21", features = ["macros", "io-util"] }
5656
tracing = { version = "0.1", features = ['log'] }
5757
unicase = "2.6"

deny.toml

+1-12
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,14 @@ confidence-threshold = 1.0
77
# List of explictly allowed licenses
88
# See https://spdx.org/licenses/ for list of possible licenses
99
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
10-
allow = [
11-
"Unicode-DFS-2016",
12-
"Apache-2.0",
13-
"BSD-3-Clause",
14-
"ISC",
15-
"MIT",
16-
"MPL-2.0",
17-
]
10+
allow = ["Unicode-3.0", "Apache-2.0", "BSD-3-Clause", "ISC", "MIT", "MPL-2.0"]
1811

1912
exceptions = [
2013
# Ring has a...complicated license. However, since it is at the core of a large number of rust
2114
# projects, we are manually allowing the OpenSSL part of the license
2215
{ name = "ring", allow = [
2316
"OpenSSL",
2417
] },
25-
# same exception as above for another crate
26-
{ name = "aws-lc-sys", allow = [
27-
"OpenSSL",
28-
] },
2918
]
3019

3120
[[licenses.clarify]]

src/client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ impl<'a> RequestBuilderWrapper<'a> {
17401740
fn from_client(
17411741
client: &'a Client,
17421742
f: impl Fn(&reqwest::Client) -> RequestBuilder,
1743-
) -> RequestBuilderWrapper {
1743+
) -> RequestBuilderWrapper<'a> {
17441744
let request_builder = f(&client.client);
17451745
RequestBuilderWrapper {
17461746
client,

0 commit comments

Comments
 (0)