From 3b4edaa7d962bee483f3ea8888e94d0e51f782c2 Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Mon, 22 Jan 2024 10:18:05 +0100 Subject: [PATCH] fix: remove lint from cargo.toml (breaks flutter build) --- Cargo.toml | 10 ---------- integrationtests/Cargo.toml | 3 --- moksha-cli/Cargo.toml | 3 --- moksha-core/Cargo.toml | 3 --- moksha-fedimint/Cargo.toml | 3 --- moksha-mint/Cargo.toml | 3 --- moksha-wallet/Cargo.toml | 3 --- 7 files changed, 28 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2251de82..13f62f72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,13 +79,3 @@ subtle = { opt-level = 3 } ring = { opt-level = 3 } fedimint-threshold-crypto = { opt-level = 3 } sqlx-macros = { opt-level = 3 } - -[workspace.lints.rust] -unsafe_code = "forbid" - -[workspace.lints.clippy] -enum_glob_use = "warn" -#pedantic = "ignore" -#nursery = "warn" -#unwrap_used = "deny" -#allow_unwrap_in_tests = "true" diff --git a/integrationtests/Cargo.toml b/integrationtests/Cargo.toml index 17e47c5a..f1f92885 100644 --- a/integrationtests/Cargo.toml +++ b/integrationtests/Cargo.toml @@ -42,6 +42,3 @@ moksha-mint = { path = "../moksha-mint" } moksha-wallet = { path = "../moksha-wallet" } moksha-core = { path = "../moksha-core" } tempfile = "3.9.0" - -[lints] -workspace = true diff --git a/moksha-cli/Cargo.toml b/moksha-cli/Cargo.toml index 96d9ae64..9ed67664 100644 --- a/moksha-cli/Cargo.toml +++ b/moksha-cli/Cargo.toml @@ -21,6 +21,3 @@ url = "2.4.1" anyhow = { version = "1.0.75", features = ["backtrace"] } dialoguer = "0.11.0" num-format = "0.4.4" - -[lints] -workspace = true diff --git a/moksha-core/Cargo.toml b/moksha-core/Cargo.toml index 200ab9fd..eb3c3381 100644 --- a/moksha-core/Cargo.toml +++ b/moksha-core/Cargo.toml @@ -35,6 +35,3 @@ getrandom = { version = "0.2.11", features = ["js"] } [dev-dependencies] anyhow = "1.0.75" pretty_assertions = "1.4.0" - -[lints] -workspace = true diff --git a/moksha-fedimint/Cargo.toml b/moksha-fedimint/Cargo.toml index db5ba174..b87c7be6 100644 --- a/moksha-fedimint/Cargo.toml +++ b/moksha-fedimint/Cargo.toml @@ -40,6 +40,3 @@ wasm-bindgen-futures = "0.4.37" # see https://docs.rs/getrandom/latest/getrandom/#indirect-dependencies and https://docs.rs/getrandom/latest/getrandom/#webassembly-support getrandom = { version = "0.2.11", features = ["js"] } ring = { version = "0.16.20", features = ["wasm32_unknown_unknown_js", "wasm32_c"] } - -[lints] -workspace = true diff --git a/moksha-mint/Cargo.toml b/moksha-mint/Cargo.toml index e19e046e..54279b8f 100644 --- a/moksha-mint/Cargo.toml +++ b/moksha-mint/Cargo.toml @@ -53,6 +53,3 @@ tower = { version = "0.4.13", features = ["util"] } mockall = "0.12.0" hex = "0.4.3" http-body-util = "0.1.0" - -[lints] -workspace = true diff --git a/moksha-wallet/Cargo.toml b/moksha-wallet/Cargo.toml index 051ed81e..b8a375a2 100644 --- a/moksha-wallet/Cargo.toml +++ b/moksha-wallet/Cargo.toml @@ -42,6 +42,3 @@ sqlx = { version = "0.7.3", default-features = false, features = ["sqlite", "run [dev-dependencies] tempfile = "3.8.1" mockall = "0.12.1" - -[lints] -workspace = true