From 286bc9293c63161538587c81664ab615668f7e06 Mon Sep 17 00:00:00 2001 From: Alex Pozhylenkov Date: Fri, 5 Jul 2024 12:47:07 +0300 Subject: [PATCH] fix: Fixes (#277) * update cargo manifests, fix lint_groups_priority * wip --- .../rust/stdcfgs/cargo_manifest/project.toml | 2 +- .../stdcfgs/cargo_manifest/workspace.toml | 2 +- examples/rust/Cargo.toml | 2 +- utilities/dbviz/Cargo.toml | 24 +++++++------------ 4 files changed, 12 insertions(+), 18 deletions(-) diff --git a/earthly/rust/stdcfgs/cargo_manifest/project.toml b/earthly/rust/stdcfgs/cargo_manifest/project.toml index bcab152d1..cf9df0cd5 100644 --- a/earthly/rust/stdcfgs/cargo_manifest/project.toml +++ b/earthly/rust/stdcfgs/cargo_manifest/project.toml @@ -19,7 +19,7 @@ bare_urls = "deny" unescaped_backticks = "deny" [lints.clippy] -pedantic = "deny" +pedantic = { level = "deny", priority = -1 } unwrap_used = "deny" expect_used = "deny" exit = "deny" diff --git a/earthly/rust/stdcfgs/cargo_manifest/workspace.toml b/earthly/rust/stdcfgs/cargo_manifest/workspace.toml index 22ad79cca..432122b13 100644 --- a/earthly/rust/stdcfgs/cargo_manifest/workspace.toml +++ b/earthly/rust/stdcfgs/cargo_manifest/workspace.toml @@ -19,7 +19,7 @@ bare_urls = "deny" unescaped_backticks = "deny" [workspace.lints.clippy] -pedantic = "deny" +pedantic = { level = "deny", priority = -1 } unwrap_used = "deny" expect_used = "deny" exit = "deny" diff --git a/examples/rust/Cargo.toml b/examples/rust/Cargo.toml index 4937b4b6f..b2e55c1ca 100644 --- a/examples/rust/Cargo.toml +++ b/examples/rust/Cargo.toml @@ -28,7 +28,7 @@ bare_urls = "deny" unescaped_backticks = "deny" [workspace.lints.clippy] -pedantic = "deny" +pedantic = { level = "deny", priority = -1 } unwrap_used = "deny" expect_used = "deny" exit = "deny" diff --git a/utilities/dbviz/Cargo.toml b/utilities/dbviz/Cargo.toml index 3136e562c..7f4017694 100644 --- a/utilities/dbviz/Cargo.toml +++ b/utilities/dbviz/Cargo.toml @@ -1,7 +1,11 @@ -[workspace.package] +[package] +name = "dbviz" +version = "1.4.0" +authors = ["Steven Johnson"] edition = "2021" +license = "Apache-2.0/MIT" -[workspace.lints.rust] +[lints.rust] warnings = "deny" missing_docs = "deny" let_underscore_drop = "deny" @@ -10,7 +14,7 @@ single_use_lifetimes = "deny" trivial_casts = "deny" trivial_numeric_casts = "deny" -[workspace.lints.rustdoc] +[lints.rustdoc] broken_intra_doc_links = "deny" invalid_codeblock_attributes = "deny" invalid_html_tags = "deny" @@ -18,8 +22,8 @@ invalid_rust_codeblocks = "deny" bare_urls = "deny" unescaped_backticks = "deny" -[workspace.lints.clippy] -pedantic = "deny" +[lints.clippy] +pedantic = { level = "deny", priority = -1 } unwrap_used = "deny" expect_used = "deny" exit = "deny" @@ -35,16 +39,6 @@ unchecked_duration_subtraction = "deny" unreachable = "deny" missing_docs_in_private_items = "deny" -[package] -name = "dbviz" -version = "1.4.0" -authors = ["Steven Johnson"] -edition.workspace = true -license = "Apache-2.0/MIT" - -[lints] -workspace = true - # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies]