From f2955b3d9c6385a5e3bb2439aa8cb1af2896bfaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dj8yf0=CE=BCl?= Date: Thu, 5 Dec 2024 00:55:13 +0200 Subject: [PATCH] chore: remove redundant tracing deps; resolves #252 --- Cargo.lock | 1 - integration-tests/Cargo.toml | 1 - integration-tests/src/lib.rs | 8 +++----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3e53846f..e4fff367 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -572,7 +572,6 @@ dependencies = [ "tokio", "toml", "tracing", - "tracing-subscriber", "zstd 0.13.2", ] diff --git a/integration-tests/Cargo.toml b/integration-tests/Cargo.toml index 478d3242..f2af844f 100644 --- a/integration-tests/Cargo.toml +++ b/integration-tests/Cargo.toml @@ -11,7 +11,6 @@ cargo-near-build = { version = "0.3.2", path = "../cargo-near-build" } cargo-near = { path = "../cargo-near" } colored = "2.0" tracing = "0.1.40" -tracing-subscriber = { version = "0.3", features = ["env-filter"] } prettyplease = "0.2" syn = "2" diff --git a/integration-tests/src/lib.rs b/integration-tests/src/lib.rs index c8284ce4..4b65405b 100644 --- a/integration-tests/src/lib.rs +++ b/integration-tests/src/lib.rs @@ -58,8 +58,7 @@ pub fn invoke_cargo_near( let mut cargo_toml = match cargo_path { Some(cargo_path) => { let file = [env!("CARGO_MANIFEST_DIR"), cargo_path].concat(); - let content = String::from_utf8(std::fs::read(&file)?)?; - content + String::from_utf8(std::fs::read(&file)?)? } None => include_str!(concat!( env!("CARGO_MANIFEST_DIR"), @@ -109,12 +108,11 @@ pub fn invoke_cargo_near( no_doc: cmd.no_doc, compact_abi: cmd.compact_abi, out_dir: cmd.out_dir.map(Into::into), - manifest_path: Some(cargo_path.into()), + manifest_path: Some(cargo_path), color: cmd.color.map(Into::into), }; tracing::debug!("AbiOpts: {:#?}", args); - let path = cargo_near_build::abi::build(args)?; - path + cargo_near_build::abi::build(args)? } Some(cargo_near::commands::CliNearCommand::Build( cargo_near::commands::build::CliCommand {