From 43e9cddf2257330ac33af059271c84d79c73d8c7 Mon Sep 17 00:00:00 2001 From: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com> Date: Sat, 9 Nov 2024 07:19:48 +0100 Subject: [PATCH] chore: remove async_trait (#1824) --- Cargo.lock | 1 - Cargo.toml | 1 - crates/release_plz/Cargo.toml | 1 - crates/release_plz/tests/all/helpers/reqwest_utils.rs | 2 -- 4 files changed, 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a7235f67c3..1720243a32 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4214,7 +4214,6 @@ version = "0.3.107" dependencies = [ "anyhow", "assert_cmd", - "async-trait", "base64 0.22.1", "cargo_metadata", "cargo_utils", diff --git a/Cargo.toml b/Cargo.toml index 8f3cc24c86..0d4cdbd442 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,6 @@ edition = "2021" [workspace.dependencies] anyhow = "1.0.86" assert_cmd = "2.0.16" -async-trait = "0.1.81" base64 = "0.22.1" camino = "1.1.9" cargo_metadata = "0.18.1" diff --git a/crates/release_plz/Cargo.toml b/crates/release_plz/Cargo.toml index 0e23fff9da..36519e8345 100644 --- a/crates/release_plz/Cargo.toml +++ b/crates/release_plz/Cargo.toml @@ -53,7 +53,6 @@ test_logs = { path = "../test_logs" } fake_package = { path = "../fake_package" } assert_cmd.workspace = true -async-trait.workspace = true fake.workspace = true expect-test.workspace = true pretty_assertions.workspace = true diff --git a/crates/release_plz/tests/all/helpers/reqwest_utils.rs b/crates/release_plz/tests/all/helpers/reqwest_utils.rs index e254bf9d20..1113714563 100644 --- a/crates/release_plz/tests/all/helpers/reqwest_utils.rs +++ b/crates/release_plz/tests/all/helpers/reqwest_utils.rs @@ -1,12 +1,10 @@ use anyhow::Context; use reqwest::Response; -#[async_trait::async_trait] pub trait ReqwestUtils { async fn ok_if_2xx(self) -> anyhow::Result; } -#[async_trait::async_trait] impl ReqwestUtils for Response { async fn ok_if_2xx(self) -> anyhow::Result { if self.status().is_success() {