From 64b35fe223bce6876d0f5a393f8a7483ab49a132 Mon Sep 17 00:00:00 2001 From: Aman Verma Date: Thu, 30 Oct 2025 18:26:31 -0400 Subject: [PATCH] cargo: remove all clippy::restriction lints --- Cargo.toml | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fb7b1f2..c917948 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,6 @@ unnameable-types = "warn" [workspace.lints.clippy] all = { level = "deny", priority = -1 } pedantic = { level = "warn", priority = -1 } -restriction = { level = "warn", priority = -1 } # good lints from clippy::nursery use-self = "warn" @@ -28,51 +27,6 @@ many-single-char-names = "allow" missing-panics-doc = "allow" too-many-lines = "allow" -# bad lints from clippy::restriction -absolute-paths = "allow" -allow-attributes-without-reason = "allow" -arbitrary-source-item-ordering = "allow" -arithmetic-side-effects = "allow" -as-conversions = "allow" -blanket-clippy-restriction-lints = "allow" -default-numeric-fallback = "allow" -else-if-without-else = "allow" -exhaustive-structs = "allow" -expect-used = "allow" -impl-trait-in-params = "allow" -implicit-return = "allow" -indexing-slicing = "allow" -integer-division = "allow" -integer-division-remainder-used = "allow" -little-endian-bytes = "allow" -min-ident-chars = "allow" -missing-assert-message = "allow" -missing-asserts-for-indexing = "allow" -missing-docs-in-private-items = "allow" -missing-inline-in-public-items = "allow" -missing-trait-methods = "allow" -multiple-unsafe-ops-per-block = "allow" -panic-in-result-fn = "allow" -pattern-type-mismatch = "allow" -precedence-bits = "allow" -print-stderr = "allow" -print-stdout = "allow" -pub-use = "allow" -question-mark-used = "allow" -self-named-module-files = "allow" -separated-literal-suffix = "allow" -shadow-reuse = "allow" -should-panic-without-expect = "allow" -single-call-fn = "allow" -std-instead-of-alloc = "allow" -std-instead-of-core = "allow" -struct-excessive-bools = "allow" -tests-outside-test-module = "allow" -unimplemented = "allow" -unreachable = "allow" -unwrap-in-result = "allow" -wildcard-enum-match-arm = "allow" - [profile.test] opt-level = 1