diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-06-03 17:17:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 21:17:08 +0000 |
commit | 3341c50b6ae676cdc8f7b1c44221aa633f2bde68 (patch) | |
tree | e051e384d722403ea0a04402679a358ef61002dc /cli/clippy.toml | |
parent | 72088f2f52d65b2948155a11e7b56722bf6c10f9 (diff) |
refactor: don't share `reqwest::HttpClient` across tokio runtimes (#24092)
This also fixes several issues where we weren't properly creating http
clients with the user's settings.
Diffstat (limited to 'cli/clippy.toml')
-rw-r--r-- | cli/clippy.toml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/clippy.toml b/cli/clippy.toml new file mode 100644 index 000000000..c4afef17c --- /dev/null +++ b/cli/clippy.toml @@ -0,0 +1,6 @@ +disallowed-methods = [ + { path = "reqwest::Client::new", reason = "create an HttpClient via an HttpClientProvider instead" }, +] +disallowed-types = [ + { path = "reqwest::Client", reason = "use crate::http_util::HttpClient instead" }, +] |