From d53f5146f90115e1a7878e2a455c2b3d79288112 Mon Sep 17 00:00:00 2001 From: Gavin-Niederman Date: Tue, 21 May 2024 14:14:30 -0700 Subject: [PATCH] chore: enable some useful lints --- Cargo.toml | 7 +++++++ packages/lemlink-plugin-interface/Cargo.toml | 3 +++ packages/lemlink/Cargo.toml | 3 +++ 3 files changed, 13 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 14c8888..37ed98b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,10 @@ [workspace] resolver = "2" members = ["packages/*"] + +[workspace.lints.rust] +rust_2018_idioms = "warn" +missing_docs = "warn" + +[workspace.lints.clippy] +missing_const_for_fn = "warn" \ No newline at end of file diff --git a/packages/lemlink-plugin-interface/Cargo.toml b/packages/lemlink-plugin-interface/Cargo.toml index 9bc10e1..611ee33 100644 --- a/packages/lemlink-plugin-interface/Cargo.toml +++ b/packages/lemlink-plugin-interface/Cargo.toml @@ -7,3 +7,6 @@ edition = "2021" [lib] crate-type = ["staticlib", "cdylib", "lib"] + +[lints] +workspace = true \ No newline at end of file diff --git a/packages/lemlink/Cargo.toml b/packages/lemlink/Cargo.toml index 997a63d..f923a64 100644 --- a/packages/lemlink/Cargo.toml +++ b/packages/lemlink/Cargo.toml @@ -8,3 +8,6 @@ clap = { version = "4.5.4", features = ["derive"] } lemlink-plugin-interface = { version = "0.1.0", path = "../lemlink-plugin-interface" } serde = { version = "1.0.202", features = ["derive"] } toml = "0.8.13" + +[lints] +workspace = true \ No newline at end of file