From 903c582e7e8faa9b225afb49e90010125ecf48af Mon Sep 17 00:00:00 2001 From: Stephan Boyer Date: Fri, 17 Nov 2023 06:03:07 -0800 Subject: [PATCH] Update the way lints are configured to use Rust's new `manifest-lint` feature --- Cargo.toml | 5 +++++ src/main.rs | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d01f2d5..d8ae0d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,11 @@ homepage = "https://github.com/gramlang/gram" repository = "https://github.com/gramlang/gram" readme = "README.md" +[lints] +clippy.all = "deny" +clippy.pedantic = "deny" +rust.warnings = "deny" + [dependencies] colored = "1" num-bigint = "0.2" diff --git a/src/main.rs b/src/main.rs index e5b5c43..0a41e67 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,3 @@ -#![deny(clippy::all, clippy::pedantic, warnings)] - mod assertions; mod de_bruijn; mod equality;