From 0dbb3c777b8ab117bc0cb0e717f580c1068c0bad Mon Sep 17 00:00:00 2001 From: V Date: Sat, 29 Jun 2024 18:30:27 +0800 Subject: [PATCH] fix: remove setup_tests, try to fix CI error on windows (#475) --- Cargo.lock | 11 ----------- clash_lib/Cargo.toml | 1 - clash_lib/src/lib.rs | 7 ------- 3 files changed, 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 38fca3f08..f6c8cc0f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1027,7 +1027,6 @@ dependencies = [ "const-fnv1a-hash", "crc32fast", "criterion", - "ctor", "dhcproto", "erased-serde", "filetime", @@ -1347,16 +1346,6 @@ dependencies = [ "typenum", ] -[[package]] -name = "ctor" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edb49164822f3ee45b17acd4a208cfc1251410cf0cad9a833234c9890774dd9f" -dependencies = [ - "quote", - "syn 2.0.66", -] - [[package]] name = "ctr" version = "0.9.2" diff --git a/clash_lib/Cargo.toml b/clash_lib/Cargo.toml index bfcee199e..616c96fa0 100644 --- a/clash_lib/Cargo.toml +++ b/clash_lib/Cargo.toml @@ -123,7 +123,6 @@ criterion = { version = "0.5", features = ["html_reports", "async_tokio"], optio [dev-dependencies] tempfile = "3.10" -ctor = "0.2" mockall = "0.12.1" tokio-test = "0.4.4" axum-macros = "0.4.0" diff --git a/clash_lib/src/lib.rs b/clash_lib/src/lib.rs index cc1ad69d8..7a62edece 100644 --- a/clash_lib/src/lib.rs +++ b/clash_lib/src/lib.rs @@ -460,13 +460,6 @@ async fn start_async(opts: Options) -> Result<(), Error> { }) } -#[cfg(test)] -#[allow(non_snake_case)] -#[ctor::ctor] -fn setup_tests() { - println!("setup tests"); -} - #[cfg(test)] mod tests { use crate::{shutdown, start, Config, Options};