You've already forked lint-policy
1043 lines
31 KiB
TOML
1043 lines
31 KiB
TOML
[workspace.lints.clippy]
|
|
absolute-paths = "allow"
|
|
absurd-extreme-comparisons = "deny"
|
|
alloc-instead-of-core = "allow"
|
|
allow-attributes = "allow"
|
|
allow-attributes-without-reason = "allow"
|
|
almost-complete-range = "warn"
|
|
almost-swapped = "deny"
|
|
approx-constant = "deny"
|
|
arbitrary-source-item-ordering = "allow"
|
|
arc-with-non-send-sync = "warn"
|
|
arithmetic-side-effects = "allow"
|
|
as-conversions = "allow"
|
|
as-pointer-underscore = "allow"
|
|
as-ptr-cast-mut = "allow"
|
|
as-underscore = "allow"
|
|
assertions-on-constants = "warn"
|
|
assertions-on-result-states = "allow"
|
|
assign-op-pattern = "warn"
|
|
assigning-clones = "allow"
|
|
async-yields-async = "deny"
|
|
await-holding-invalid-type = "warn"
|
|
await-holding-lock = "warn"
|
|
await-holding-refcell-ref = "warn"
|
|
bad-bit-mask = "deny"
|
|
big-endian-bytes = "allow"
|
|
bind-instead-of-map = "warn"
|
|
blanket-clippy-restriction-lints = "warn"
|
|
blocks-in-conditions = "warn"
|
|
bool-assert-comparison = "warn"
|
|
bool-comparison = "warn"
|
|
bool-to-int-with-if = "allow"
|
|
borrow-as-ptr = "allow"
|
|
borrow-deref-ref = "warn"
|
|
borrow-interior-mutable-const = "warn"
|
|
borrowed-box = "warn"
|
|
box-collection = "warn"
|
|
box-default = "warn"
|
|
boxed-local = "warn"
|
|
branches-sharing-code = "allow"
|
|
builtin-type-shadow = "warn"
|
|
byte-char-slices = "warn"
|
|
bytes-count-to-len = "warn"
|
|
bytes-nth = "warn"
|
|
cargo-common-metadata = "allow"
|
|
case-sensitive-file-extension-comparisons = "allow"
|
|
cast-abs-to-unsigned = "warn"
|
|
cast-enum-constructor = "warn"
|
|
cast-enum-truncation = "warn"
|
|
cast-lossless = "allow"
|
|
cast-nan-to-int = "warn"
|
|
cast-possible-truncation = "allow"
|
|
cast-possible-wrap = "allow"
|
|
cast-precision-loss = "allow"
|
|
cast-ptr-alignment = "allow"
|
|
cast-sign-loss = "allow"
|
|
cast-slice-different-sizes = "deny"
|
|
cast-slice-from-raw-parts = "warn"
|
|
cfg-not-test = "allow"
|
|
char-indices-as-byte-indices = "deny"
|
|
char-lit-as-u8 = "warn"
|
|
chars-last-cmp = "warn"
|
|
chars-next-cmp = "warn"
|
|
checked-conversions = "allow"
|
|
clear-with-drain = "allow"
|
|
clone-on-copy = "warn"
|
|
clone-on-ref-ptr = "allow"
|
|
cloned-instead-of-copied = "allow"
|
|
cloned-ref-to-slice-refs = "warn"
|
|
cmp-null = "warn"
|
|
cmp-owned = "warn"
|
|
coerce-container-to-any = "allow"
|
|
cognitive-complexity = "allow"
|
|
collapsible-else-if = "warn"
|
|
collapsible-if = "warn"
|
|
collapsible-match = "warn"
|
|
collapsible-str-replace = "warn"
|
|
collection-is-never-read = "allow"
|
|
comparison-chain = "allow"
|
|
comparison-to-empty = "warn"
|
|
confusing-method-to-numeric-cast = "warn"
|
|
const-is-empty = "warn"
|
|
copy-iterator = "allow"
|
|
crate-in-macro-def = "warn"
|
|
create-dir = "allow"
|
|
crosspointer-transmute = "warn"
|
|
dbg-macro = "allow"
|
|
debug-assert-with-mut-call = "allow"
|
|
decimal-literal-representation = "allow"
|
|
declare-interior-mutable-const = "warn"
|
|
default-constructed-unit-structs = "warn"
|
|
default-instead-of-iter-empty = "warn"
|
|
default-numeric-fallback = "allow"
|
|
default-trait-access = "allow"
|
|
default-union-representation = "allow"
|
|
deprecated-cfg-attr = "warn"
|
|
deprecated-clippy-cfg-attr = "warn"
|
|
deprecated-semver = "deny"
|
|
deref-addrof = "warn"
|
|
deref-by-slicing = "allow"
|
|
derivable-impls = "warn"
|
|
derive-ord-xor-partial-ord = "deny"
|
|
derive-partial-eq-without-eq = "allow"
|
|
derived-hash-with-manual-eq = "deny"
|
|
disallowed-macros = "warn"
|
|
disallowed-methods = "warn"
|
|
disallowed-names = "warn"
|
|
disallowed-script-idents = "allow"
|
|
disallowed-types = "warn"
|
|
diverging-sub-expression = "warn"
|
|
doc-broken-link = "allow"
|
|
doc-comment-double-space-linebreaks = "allow"
|
|
doc-include-without-cfg = "allow"
|
|
doc-lazy-continuation = "warn"
|
|
doc-link-code = "allow"
|
|
doc-link-with-quotes = "allow"
|
|
doc-markdown = "allow"
|
|
doc-nested-refdefs = "warn"
|
|
doc-overindented-list-items = "warn"
|
|
doc-paragraphs-missing-punctuation = "allow"
|
|
doc-suspicious-footnotes = "warn"
|
|
double-comparisons = "warn"
|
|
double-ended-iterator-last = "warn"
|
|
double-must-use = "warn"
|
|
double-parens = "warn"
|
|
drain-collect = "warn"
|
|
drop-non-drop = "warn"
|
|
duplicate-mod = "warn"
|
|
duplicate-underscore-argument = "warn"
|
|
duplicated-attributes = "warn"
|
|
duration-subsec = "warn"
|
|
eager-transmute = "deny"
|
|
elidable-lifetime-names = "allow"
|
|
else-if-without-else = "allow"
|
|
empty-docs = "warn"
|
|
empty-drop = "allow"
|
|
empty-enum-variants-with-brackets = "allow"
|
|
empty-enums = "allow"
|
|
empty-line-after-doc-comments = "warn"
|
|
empty-line-after-outer-attr = "warn"
|
|
empty-loop = "warn"
|
|
empty-structs-with-brackets = "allow"
|
|
enum-clike-unportable-variant = "deny"
|
|
enum-glob-use = "allow"
|
|
enum-variant-names = "warn"
|
|
eq-op = "deny"
|
|
equatable-if-let = "allow"
|
|
erasing-op = "deny"
|
|
err-expect = "warn"
|
|
error-impl-error = "allow"
|
|
excessive-nesting = "warn"
|
|
excessive-precision = "warn"
|
|
exhaustive-enums = "allow"
|
|
exhaustive-structs = "allow"
|
|
exit = "allow"
|
|
expect-fun-call = "warn"
|
|
expect-used = "allow"
|
|
expl-impl-clone-on-copy = "allow"
|
|
explicit-auto-deref = "warn"
|
|
explicit-counter-loop = "warn"
|
|
explicit-deref-methods = "allow"
|
|
explicit-into-iter-loop = "allow"
|
|
explicit-iter-loop = "allow"
|
|
explicit-write = "warn"
|
|
extend-with-drain = "warn"
|
|
extra-unused-lifetimes = "warn"
|
|
extra-unused-type-parameters = "warn"
|
|
fallible-impl-from = "allow"
|
|
field-reassign-with-default = "warn"
|
|
field-scoped-visibility-modifiers = "allow"
|
|
filetype-is-file = "allow"
|
|
filter-map-bool-then = "warn"
|
|
filter-map-identity = "warn"
|
|
filter-map-next = "allow"
|
|
filter-next = "warn"
|
|
flat-map-identity = "warn"
|
|
flat-map-option = "allow"
|
|
float-arithmetic = "allow"
|
|
float-cmp = "allow"
|
|
float-cmp-const = "allow"
|
|
float-equality-without-abs = "warn"
|
|
fn-params-excessive-bools = "allow"
|
|
fn-to-numeric-cast = "warn"
|
|
fn-to-numeric-cast-any = "allow"
|
|
fn-to-numeric-cast-with-truncation = "warn"
|
|
for-kv-map = "warn"
|
|
forget-non-drop = "warn"
|
|
format-collect = "allow"
|
|
format-in-format-args = "warn"
|
|
format-push-string = "allow"
|
|
four-forward-slashes = "warn"
|
|
from-iter-instead-of-collect = "allow"
|
|
from-over-into = "warn"
|
|
from-raw-with-void-ptr = "warn"
|
|
from-str-radix-10 = "warn"
|
|
future-not-send = "allow"
|
|
get-first = "warn"
|
|
get-last-with-len = "warn"
|
|
get-unwrap = "allow"
|
|
host-endian-bytes = "allow"
|
|
identity-op = "warn"
|
|
if-let-mutex = "deny"
|
|
if-not-else = "allow"
|
|
if-same-then-else = "warn"
|
|
if-then-some-else-none = "allow"
|
|
ifs-same-cond = "deny"
|
|
ignore-without-reason = "allow"
|
|
ignored-unit-patterns = "allow"
|
|
impl-hash-borrow-with-str-and-bytes = "deny"
|
|
impl-trait-in-params = "allow"
|
|
implicit-clone = "allow"
|
|
implicit-hasher = "allow"
|
|
implicit-return = "allow"
|
|
implicit-saturating-add = "warn"
|
|
implicit-saturating-sub = "warn"
|
|
implied-bounds-in-impls = "warn"
|
|
impossible-comparisons = "deny"
|
|
imprecise-flops = "allow"
|
|
incompatible-msrv = "warn"
|
|
inconsistent-digit-grouping = "warn"
|
|
inconsistent-struct-constructor = "allow"
|
|
index-refutable-slice = "allow"
|
|
indexing-slicing = "allow"
|
|
ineffective-bit-mask = "deny"
|
|
ineffective-open-options = "warn"
|
|
inefficient-to-string = "allow"
|
|
infallible-destructuring-match = "warn"
|
|
infallible-try-from = "warn"
|
|
infinite-iter = "deny"
|
|
infinite-loop = "allow"
|
|
inherent-to-string = "warn"
|
|
inherent-to-string-shadow-display = "deny"
|
|
init-numbered-fields = "warn"
|
|
inline-always = "allow"
|
|
inline-asm-x86-att-syntax = "allow"
|
|
inline-asm-x86-intel-syntax = "allow"
|
|
inline-fn-without-body = "deny"
|
|
inspect-for-each = "warn"
|
|
int-plus-one = "warn"
|
|
integer-division = "allow"
|
|
integer-division-remainder-used = "allow"
|
|
into-iter-on-ref = "warn"
|
|
into-iter-without-iter = "allow"
|
|
invalid-regex = "deny"
|
|
invalid-upcast-comparisons = "allow"
|
|
inverted-saturating-sub = "deny"
|
|
invisible-characters = "deny"
|
|
io-other-error = "warn"
|
|
ip-constant = "allow"
|
|
is-digit-ascii-radix = "warn"
|
|
items-after-statements = "allow"
|
|
items-after-test-module = "warn"
|
|
iter-cloned-collect = "warn"
|
|
iter-count = "warn"
|
|
iter-filter-is-ok = "allow"
|
|
iter-filter-is-some = "allow"
|
|
iter-kv-map = "warn"
|
|
iter-next-loop = "deny"
|
|
iter-next-slice = "warn"
|
|
iter-not-returning-iterator = "allow"
|
|
iter-nth = "warn"
|
|
iter-nth-zero = "warn"
|
|
iter-on-empty-collections = "allow"
|
|
iter-on-single-items = "allow"
|
|
iter-out-of-bounds = "warn"
|
|
iter-over-hash-type = "allow"
|
|
iter-overeager-cloned = "warn"
|
|
iter-skip-next = "warn"
|
|
iter-skip-zero = "deny"
|
|
iter-with-drain = "allow"
|
|
iter-without-into-iter = "allow"
|
|
iterator-step-by-zero = "deny"
|
|
join-absolute-paths = "warn"
|
|
just-underscores-and-digits = "warn"
|
|
large-const-arrays = "warn"
|
|
large-digit-groups = "allow"
|
|
large-enum-variant = "warn"
|
|
large-futures = "allow"
|
|
large-include-file = "allow"
|
|
large-stack-arrays = "allow"
|
|
large-stack-frames = "allow"
|
|
large-types-passed-by-value = "allow"
|
|
legacy-numeric-constants = "warn"
|
|
len-without-is-empty = "warn"
|
|
len-zero = "warn"
|
|
let-and-return = "warn"
|
|
let-underscore-future = "warn"
|
|
let-underscore-lock = "deny"
|
|
let-underscore-must-use = "allow"
|
|
let-underscore-untyped = "allow"
|
|
let-unit-value = "warn"
|
|
let-with-type-underscore = "warn"
|
|
lines-filter-map-ok = "warn"
|
|
linkedlist = "allow"
|
|
lint-groups-priority = "deny"
|
|
literal-string-with-formatting-args = "allow"
|
|
little-endian-bytes = "allow"
|
|
lossy-float-literal = "allow"
|
|
macro-metavars-in-unsafe = "warn"
|
|
macro-use-imports = "allow"
|
|
main-recursion = "warn"
|
|
manual-abs-diff = "warn"
|
|
manual-assert = "allow"
|
|
manual-async-fn = "warn"
|
|
manual-bits = "warn"
|
|
manual-c-str-literals = "warn"
|
|
manual-clamp = "warn"
|
|
manual-contains = "warn"
|
|
manual-dangling-ptr = "warn"
|
|
manual-div-ceil = "warn"
|
|
manual-filter = "warn"
|
|
manual-filter-map = "warn"
|
|
manual-find = "warn"
|
|
manual-find-map = "warn"
|
|
manual-flatten = "warn"
|
|
manual-hash-one = "warn"
|
|
manual-ignore-case-cmp = "warn"
|
|
manual-inspect = "warn"
|
|
manual-instant-elapsed = "allow"
|
|
manual-is-ascii-check = "warn"
|
|
manual-is-finite = "warn"
|
|
manual-is-infinite = "warn"
|
|
manual-is-multiple-of = "warn"
|
|
manual-is-power-of-two = "allow"
|
|
manual-is-variant-and = "allow"
|
|
manual-let-else = "allow"
|
|
manual-main-separator-str = "warn"
|
|
manual-map = "warn"
|
|
manual-memcpy = "warn"
|
|
manual-midpoint = "allow"
|
|
manual-next-back = "warn"
|
|
manual-non-exhaustive = "warn"
|
|
manual-ok-err = "warn"
|
|
manual-ok-or = "warn"
|
|
manual-option-as-slice = "warn"
|
|
manual-pattern-char-comparison = "warn"
|
|
manual-range-contains = "warn"
|
|
manual-range-patterns = "warn"
|
|
manual-rem-euclid = "warn"
|
|
manual-repeat-n = "warn"
|
|
manual-retain = "warn"
|
|
manual-rotate = "warn"
|
|
manual-saturating-arithmetic = "warn"
|
|
manual-slice-fill = "warn"
|
|
manual-slice-size-calculation = "warn"
|
|
manual-split-once = "warn"
|
|
manual-str-repeat = "warn"
|
|
manual-string-new = "allow"
|
|
manual-strip = "warn"
|
|
manual-swap = "warn"
|
|
manual-try-fold = "warn"
|
|
manual-unwrap-or = "warn"
|
|
manual-unwrap-or-default = "warn"
|
|
manual-while-let-some = "warn"
|
|
many-single-char-names = "allow"
|
|
map-all-any-identity = "warn"
|
|
map-clone = "warn"
|
|
map-collect-result-unit = "warn"
|
|
map-entry = "warn"
|
|
map-err-ignore = "allow"
|
|
map-flatten = "warn"
|
|
map-identity = "warn"
|
|
map-unwrap-or = "allow"
|
|
map-with-unused-argument-over-ranges = "allow"
|
|
match-as-ref = "warn"
|
|
match-bool = "allow"
|
|
match-like-matches-macro = "warn"
|
|
match-overlapping-arm = "warn"
|
|
match-ref-pats = "warn"
|
|
match-result-ok = "warn"
|
|
match-same-arms = "allow"
|
|
match-single-binding = "warn"
|
|
match-str-case-mismatch = "deny"
|
|
match-wild-err-arm = "allow"
|
|
match-wildcard-for-single-variants = "allow"
|
|
maybe-infinite-iter = "allow"
|
|
mem-forget = "allow"
|
|
mem-replace-option-with-none = "warn"
|
|
mem-replace-option-with-some = "warn"
|
|
mem-replace-with-default = "warn"
|
|
mem-replace-with-uninit = "deny"
|
|
min-ident-chars = "allow"
|
|
min-max = "deny"
|
|
mismatching-type-param-order = "allow"
|
|
misnamed-getters = "warn"
|
|
misrefactored-assign-op = "warn"
|
|
missing-assert-message = "allow"
|
|
missing-asserts-for-indexing = "allow"
|
|
missing-const-for-fn = "allow"
|
|
missing-const-for-thread-local = "warn"
|
|
missing-docs-in-private-items = "allow"
|
|
missing-enforced-import-renames = "warn"
|
|
missing-errors-doc = "allow"
|
|
missing-fields-in-debug = "allow"
|
|
missing-inline-in-public-items = "allow"
|
|
missing-panics-doc = "allow"
|
|
missing-safety-doc = "warn"
|
|
missing-spin-loop = "warn"
|
|
missing-trait-methods = "allow"
|
|
missing-transmute-annotations = "warn"
|
|
mistyped-literal-suffixes = "deny"
|
|
mixed-attributes-style = "warn"
|
|
mixed-case-hex-literals = "warn"
|
|
mixed-read-write-in-expression = "allow"
|
|
mod-module-files = "allow"
|
|
module-inception = "warn"
|
|
module-name-repetitions = "allow"
|
|
modulo-arithmetic = "allow"
|
|
modulo-one = "deny"
|
|
multi-assignments = "warn"
|
|
multiple-bound-locations = "warn"
|
|
multiple-crate-versions = "allow"
|
|
multiple-inherent-impl = "allow"
|
|
multiple-unsafe-ops-per-block = "allow"
|
|
must-use-candidate = "allow"
|
|
must-use-unit = "warn"
|
|
mut-from-ref = "deny"
|
|
mut-mut = "allow"
|
|
mut-mutex-lock = "warn"
|
|
mut-range-bound = "warn"
|
|
mutable-key-type = "warn"
|
|
mutex-atomic = "allow"
|
|
mutex-integer = "allow"
|
|
naive-bytecount = "allow"
|
|
needless-arbitrary-self-type = "warn"
|
|
needless-as-bytes = "warn"
|
|
needless-bitwise-bool = "allow"
|
|
needless-bool = "warn"
|
|
needless-bool-assign = "warn"
|
|
needless-borrow = "warn"
|
|
needless-borrowed-reference = "warn"
|
|
needless-borrows-for-generic-args = "warn"
|
|
needless-character-iteration = "warn"
|
|
needless-collect = "allow"
|
|
needless-continue = "allow"
|
|
needless-doctest-main = "warn"
|
|
needless-else = "warn"
|
|
needless-for-each = "allow"
|
|
needless-ifs = "warn"
|
|
needless-late-init = "warn"
|
|
needless-lifetimes = "warn"
|
|
needless-match = "warn"
|
|
needless-maybe-sized = "warn"
|
|
needless-option-as-deref = "warn"
|
|
needless-option-take = "warn"
|
|
needless-parens-on-range-literals = "warn"
|
|
needless-pass-by-ref-mut = "allow"
|
|
needless-pass-by-value = "allow"
|
|
needless-pub-self = "warn"
|
|
needless-question-mark = "warn"
|
|
needless-range-loop = "warn"
|
|
needless-raw-string-hashes = "allow"
|
|
needless-raw-strings = "allow"
|
|
needless-return = "warn"
|
|
needless-return-with-question-mark = "warn"
|
|
needless-splitn = "warn"
|
|
needless-update = "warn"
|
|
neg-cmp-op-on-partial-ord = "warn"
|
|
neg-multiply = "warn"
|
|
negative-feature-names = "allow"
|
|
never-loop = "deny"
|
|
new-ret-no-self = "warn"
|
|
new-without-default = "warn"
|
|
no-effect = "warn"
|
|
no-effect-replace = "warn"
|
|
no-effect-underscore-binding = "allow"
|
|
no-mangle-with-rust-abi = "allow"
|
|
non-ascii-literal = "allow"
|
|
non-canonical-clone-impl = "warn"
|
|
non-canonical-partial-ord-impl = "warn"
|
|
non-minimal-cfg = "warn"
|
|
non-octal-unix-permissions = "deny"
|
|
non-send-fields-in-send-ty = "allow"
|
|
non-std-lazy-statics = "allow"
|
|
non-zero-suggestions = "allow"
|
|
nonminimal-bool = "warn"
|
|
nonsensical-open-options = "deny"
|
|
nonstandard-macro-braces = "allow"
|
|
not-unsafe-ptr-arg-deref = "deny"
|
|
obfuscated-if-else = "warn"
|
|
octal-escapes = "warn"
|
|
ok-expect = "warn"
|
|
only-used-in-recursion = "warn"
|
|
op-ref = "warn"
|
|
option-as-ref-cloned = "allow"
|
|
option-as-ref-deref = "warn"
|
|
option-env-unwrap = "deny"
|
|
option-filter-map = "warn"
|
|
option-if-let-else = "allow"
|
|
option-map-or-none = "warn"
|
|
option-map-unit-fn = "warn"
|
|
option-option = "allow"
|
|
or-fun-call = "allow"
|
|
or-then-unwrap = "warn"
|
|
out-of-bounds-indexing = "deny"
|
|
overly-complex-bool-expr = "deny"
|
|
owned-cow = "warn"
|
|
panic = "allow"
|
|
panic-in-result-fn = "allow"
|
|
panicking-overflow-checks = "deny"
|
|
panicking-unwrap = "deny"
|
|
partial-pub-fields = "allow"
|
|
partialeq-ne-impl = "warn"
|
|
partialeq-to-none = "warn"
|
|
path-buf-push-overwrite = "allow"
|
|
path-ends-with-ext = "warn"
|
|
pathbuf-init-then-push = "allow"
|
|
pattern-type-mismatch = "allow"
|
|
permissions-set-readonly-false = "warn"
|
|
pointer-format = "allow"
|
|
pointers-in-nomem-asm-block = "warn"
|
|
possible-missing-comma = "deny"
|
|
possible-missing-else = "warn"
|
|
precedence = "warn"
|
|
precedence-bits = "allow"
|
|
print-in-format-impl = "warn"
|
|
print-literal = "warn"
|
|
print-stderr = "allow"
|
|
print-stdout = "allow"
|
|
print-with-newline = "warn"
|
|
println-empty-string = "warn"
|
|
ptr-arg = "warn"
|
|
ptr-as-ptr = "allow"
|
|
ptr-cast-constness = "allow"
|
|
ptr-eq = "warn"
|
|
ptr-offset-with-cast = "warn"
|
|
pub-underscore-fields = "allow"
|
|
pub-use = "allow"
|
|
pub-with-shorthand = "allow"
|
|
pub-without-shorthand = "allow"
|
|
question-mark = "warn"
|
|
question-mark-used = "allow"
|
|
range-minus-one = "allow"
|
|
range-plus-one = "allow"
|
|
range-zip-with-len = "warn"
|
|
rc-buffer = "allow"
|
|
rc-clone-in-vec-init = "warn"
|
|
rc-mutex = "allow"
|
|
read-line-without-trim = "deny"
|
|
read-zero-byte-vec = "allow"
|
|
readonly-write-lock = "warn"
|
|
recursive-format-impl = "deny"
|
|
redundant-allocation = "warn"
|
|
redundant-as-str = "warn"
|
|
redundant-async-block = "warn"
|
|
redundant-at-rest-pattern = "warn"
|
|
redundant-clone = "allow"
|
|
redundant-closure = "warn"
|
|
redundant-closure-call = "warn"
|
|
redundant-closure-for-method-calls = "allow"
|
|
redundant-comparisons = "deny"
|
|
redundant-else = "allow"
|
|
redundant-feature-names = "allow"
|
|
redundant-field-names = "warn"
|
|
redundant-guards = "warn"
|
|
redundant-iter-cloned = "warn"
|
|
redundant-locals = "warn"
|
|
redundant-pattern = "warn"
|
|
redundant-pattern-matching = "warn"
|
|
redundant-pub-crate = "allow"
|
|
redundant-slicing = "warn"
|
|
redundant-static-lifetimes = "warn"
|
|
redundant-test-prefix = "allow"
|
|
redundant-type-annotations = "allow"
|
|
ref-as-ptr = "allow"
|
|
ref-binding-to-reference = "allow"
|
|
ref-option = "allow"
|
|
ref-option-ref = "allow"
|
|
ref-patterns = "allow"
|
|
regex-creation-in-loops = "warn"
|
|
renamed-function-params = "allow"
|
|
repeat-once = "warn"
|
|
repeat-vec-with-capacity = "warn"
|
|
replace-box = "warn"
|
|
repr-packed-without-abi = "warn"
|
|
reserve-after-initialization = "warn"
|
|
rest-pat-in-fully-bound-structs = "allow"
|
|
result-filter-map = "warn"
|
|
result-large-err = "warn"
|
|
result-map-or-into-option = "warn"
|
|
result-map-unit-fn = "warn"
|
|
result-unit-err = "warn"
|
|
return-and-then = "allow"
|
|
return-self-not-must-use = "allow"
|
|
reversed-empty-ranges = "deny"
|
|
same-functions-in-if-condition = "allow"
|
|
same-item-push = "warn"
|
|
same-name-method = "allow"
|
|
search-is-some = "warn"
|
|
seek-from-current = "warn"
|
|
seek-to-start-instead-of-rewind = "warn"
|
|
self-assignment = "deny"
|
|
self-named-constructors = "warn"
|
|
self-named-module-files = "allow"
|
|
self-only-used-in-recursion = "allow"
|
|
semicolon-if-nothing-returned = "allow"
|
|
semicolon-inside-block = "allow"
|
|
semicolon-outside-block = "allow"
|
|
separated-literal-suffix = "allow"
|
|
serde-api-misuse = "deny"
|
|
set-contains-or-insert = "allow"
|
|
shadow-reuse = "allow"
|
|
shadow-same = "allow"
|
|
shadow-unrelated = "allow"
|
|
short-circuit-statement = "warn"
|
|
should-implement-trait = "warn"
|
|
should-panic-without-expect = "allow"
|
|
significant-drop-in-scrutinee = "allow"
|
|
significant-drop-tightening = "allow"
|
|
similar-names = "allow"
|
|
single-call-fn = "allow"
|
|
single-char-add-str = "warn"
|
|
single-char-lifetime-names = "allow"
|
|
single-char-pattern = "allow"
|
|
single-component-path-imports = "warn"
|
|
single-element-loop = "warn"
|
|
single-match = "warn"
|
|
single-match-else = "allow"
|
|
single-option-map = "allow"
|
|
single-range-in-vec-init = "warn"
|
|
size-of-in-element-count = "deny"
|
|
size-of-ref = "warn"
|
|
skip-while-next = "warn"
|
|
sliced-string-as-bytes = "warn"
|
|
slow-vector-initialization = "warn"
|
|
stable-sort-primitive = "allow"
|
|
std-instead-of-alloc = "allow"
|
|
std-instead-of-core = "allow"
|
|
str-split-at-newline = "allow"
|
|
str-to-string = "allow"
|
|
string-add = "allow"
|
|
string-add-assign = "allow"
|
|
string-extend-chars = "warn"
|
|
string-from-utf8-as-bytes = "warn"
|
|
string-lit-as-bytes = "allow"
|
|
string-lit-chars-any = "allow"
|
|
string-slice = "allow"
|
|
strlen-on-c-strings = "warn"
|
|
struct-excessive-bools = "allow"
|
|
struct-field-names = "allow"
|
|
suboptimal-flops = "allow"
|
|
suspicious-arithmetic-impl = "warn"
|
|
suspicious-assignment-formatting = "warn"
|
|
suspicious-command-arg-space = "warn"
|
|
suspicious-doc-comments = "warn"
|
|
suspicious-else-formatting = "warn"
|
|
suspicious-map = "warn"
|
|
suspicious-op-assign-impl = "warn"
|
|
suspicious-open-options = "warn"
|
|
suspicious-operation-groupings = "allow"
|
|
suspicious-splitn = "deny"
|
|
suspicious-to-owned = "warn"
|
|
suspicious-unary-op-formatting = "warn"
|
|
suspicious-xor-used-as-pow = "allow"
|
|
swap-ptr-to-ref = "warn"
|
|
swap-with-temporary = "warn"
|
|
tabs-in-doc-comments = "warn"
|
|
temporary-assignment = "warn"
|
|
test-attr-in-doctest = "warn"
|
|
tests-outside-test-module = "allow"
|
|
to-digit-is-some = "warn"
|
|
to-string-in-format-args = "warn"
|
|
to-string-trait-impl = "warn"
|
|
todo = "allow"
|
|
too-long-first-doc-paragraph = "allow"
|
|
too-many-arguments = "warn"
|
|
too-many-lines = "allow"
|
|
toplevel-ref-arg = "warn"
|
|
trailing-empty-array = "allow"
|
|
trait-duplication-in-bounds = "allow"
|
|
transmute-bytes-to-str = "warn"
|
|
transmute-int-to-bool = "warn"
|
|
transmute-int-to-non-zero = "warn"
|
|
transmute-null-to-fn = "deny"
|
|
transmute-ptr-to-ptr = "allow"
|
|
transmute-ptr-to-ref = "warn"
|
|
transmute-undefined-repr = "allow"
|
|
transmutes-expressible-as-ptr-casts = "warn"
|
|
transmuting-null = "deny"
|
|
trim-split-whitespace = "warn"
|
|
trivial-regex = "allow"
|
|
trivially-copy-pass-by-ref = "allow"
|
|
try-err = "allow"
|
|
tuple-array-conversions = "allow"
|
|
type-complexity = "warn"
|
|
type-id-on-box = "warn"
|
|
type-repetition-in-bounds = "allow"
|
|
unbuffered-bytes = "warn"
|
|
unchecked-time-subtraction = "allow"
|
|
unconditional-recursion = "warn"
|
|
undocumented-unsafe-blocks = "allow"
|
|
unicode-not-nfc = "allow"
|
|
unimplemented = "allow"
|
|
uninhabited-references = "allow"
|
|
uninit-assumed-init = "deny"
|
|
uninit-vec = "deny"
|
|
uninlined-format-args = "allow"
|
|
unit-arg = "warn"
|
|
unit-cmp = "deny"
|
|
unit-hash = "deny"
|
|
unit-return-expecting-ord = "deny"
|
|
unnecessary-box-returns = "allow"
|
|
unnecessary-cast = "warn"
|
|
unnecessary-clippy-cfg = "warn"
|
|
unnecessary-debug-formatting = "allow"
|
|
unnecessary-fallible-conversions = "warn"
|
|
unnecessary-filter-map = "warn"
|
|
unnecessary-find-map = "warn"
|
|
unnecessary-first-then-check = "warn"
|
|
unnecessary-fold = "warn"
|
|
unnecessary-get-then-check = "warn"
|
|
unnecessary-join = "allow"
|
|
unnecessary-lazy-evaluations = "warn"
|
|
unnecessary-literal-bound = "allow"
|
|
unnecessary-literal-unwrap = "warn"
|
|
unnecessary-map-on-constructor = "warn"
|
|
unnecessary-map-or = "warn"
|
|
unnecessary-min-or-max = "warn"
|
|
unnecessary-mut-passed = "warn"
|
|
unnecessary-operation = "warn"
|
|
unnecessary-option-map-or-else = "warn"
|
|
unnecessary-owned-empty-strings = "warn"
|
|
unnecessary-result-map-or-else = "warn"
|
|
unnecessary-safety-comment = "allow"
|
|
unnecessary-safety-doc = "allow"
|
|
unnecessary-self-imports = "allow"
|
|
unnecessary-semicolon = "allow"
|
|
unnecessary-sort-by = "warn"
|
|
unnecessary-struct-initialization = "allow"
|
|
unnecessary-to-owned = "warn"
|
|
unnecessary-unwrap = "warn"
|
|
unnecessary-wraps = "allow"
|
|
unneeded-field-pattern = "allow"
|
|
unneeded-struct-pattern = "warn"
|
|
unneeded-wildcard-pattern = "warn"
|
|
unnested-or-patterns = "allow"
|
|
unreachable = "allow"
|
|
unreadable-literal = "allow"
|
|
unsafe-derive-deserialize = "allow"
|
|
unsafe-removed-from-name = "warn"
|
|
unseparated-literal-suffix = "allow"
|
|
unsound-collection-transmute = "deny"
|
|
unused-async = "allow"
|
|
unused-enumerate-index = "warn"
|
|
unused-format-specs = "warn"
|
|
unused-io-amount = "deny"
|
|
unused-peekable = "allow"
|
|
unused-result-ok = "allow"
|
|
unused-rounding = "allow"
|
|
unused-self = "allow"
|
|
unused-trait-names = "allow"
|
|
unused-unit = "warn"
|
|
unusual-byte-groupings = "warn"
|
|
unwrap-in-result = "allow"
|
|
unwrap-or-default = "warn"
|
|
unwrap-used = "allow"
|
|
upper-case-acronyms = "warn"
|
|
use-debug = "allow"
|
|
use-self = "allow"
|
|
used-underscore-binding = "allow"
|
|
used-underscore-items = "allow"
|
|
useless-asref = "warn"
|
|
useless-attribute = "deny"
|
|
useless-concat = "warn"
|
|
useless-conversion = "warn"
|
|
useless-format = "warn"
|
|
useless-let-if-seq = "allow"
|
|
useless-nonzero-new-unchecked = "warn"
|
|
useless-transmute = "warn"
|
|
useless-vec = "warn"
|
|
vec-box = "warn"
|
|
vec-init-then-push = "warn"
|
|
vec-resize-to-zero = "deny"
|
|
verbose-bit-mask = "allow"
|
|
verbose-file-reads = "allow"
|
|
volatile-composites = "allow"
|
|
waker-clone-wake = "warn"
|
|
while-float = "allow"
|
|
while-immutable-condition = "deny"
|
|
while-let-loop = "warn"
|
|
while-let-on-iterator = "warn"
|
|
wildcard-dependencies = "allow"
|
|
wildcard-enum-match-arm = "allow"
|
|
wildcard-imports = "allow"
|
|
wildcard-in-or-patterns = "warn"
|
|
write-literal = "warn"
|
|
write-with-newline = "warn"
|
|
writeln-empty-string = "warn"
|
|
wrong-self-convention = "warn"
|
|
wrong-transmute = "deny"
|
|
zero-divided-by-zero = "warn"
|
|
zero-prefixed-literal = "warn"
|
|
zero-ptr = "warn"
|
|
zero-repeat-side-effects = "warn"
|
|
zero-sized-map-values = "allow"
|
|
zombie-processes = "warn"
|
|
zst-offset = "deny"
|
|
|
|
[workspace.lints.rust]
|
|
aarch64-softfloat-neon = "warn"
|
|
absolute-paths-not-starting-with-crate = "allow"
|
|
ambiguous-associated-items = "deny"
|
|
ambiguous-glob-imports = "deny"
|
|
ambiguous-glob-reexports = "warn"
|
|
ambiguous-negative-literals = "allow"
|
|
ambiguous-wide-pointer-comparisons = "warn"
|
|
anonymous-parameters = "warn"
|
|
arithmetic-overflow = "deny"
|
|
array-into-iter = "warn"
|
|
asm-sub-register = "warn"
|
|
async-fn-in-trait = "warn"
|
|
bad-asm-style = "warn"
|
|
bare-trait-objects = "warn"
|
|
binary-asm-labels = "deny"
|
|
bindings-with-variant-name = "deny"
|
|
boxed-slice-into-iter = "warn"
|
|
break-with-label-and-loop = "warn"
|
|
clashing-extern-declarations = "warn"
|
|
closure-returning-async-block = "allow"
|
|
coherence-leak-check = "warn"
|
|
conflicting-repr-hints = "deny"
|
|
confusable-idents = "warn"
|
|
const-evaluatable-unchecked = "warn"
|
|
const-item-interior-mutations = "warn"
|
|
const-item-mutation = "warn"
|
|
dangerous-implicit-autorefs = "deny"
|
|
dangling-pointers-from-locals = "warn"
|
|
dangling-pointers-from-temporaries = "warn"
|
|
dead-code = "warn"
|
|
default-overrides-default-fields = "deny"
|
|
dependency-on-unit-never-type-fallback = "deny"
|
|
deprecated = "warn"
|
|
deprecated-in-future = "allow"
|
|
deprecated-safe-2024 = "allow"
|
|
deprecated-where-clause-location = "warn"
|
|
deref-into-dyn-supertrait = "allow"
|
|
deref-nullptr = "deny"
|
|
double-negations = "warn"
|
|
drop-bounds = "warn"
|
|
dropping-copy-types = "warn"
|
|
dropping-references = "warn"
|
|
duplicate-macro-attributes = "warn"
|
|
dyn-drop = "warn"
|
|
edition-2024-expr-fragment-specifier = "allow"
|
|
elided-lifetimes-in-associated-constant = "deny"
|
|
elided-lifetimes-in-paths = "allow"
|
|
ellipsis-inclusive-range-patterns = "warn"
|
|
enum-intrinsics-non-enums = "deny"
|
|
explicit-builtin-cfgs-in-flags = "deny"
|
|
explicit-outlives-requirements = "allow"
|
|
exported-private-dependencies = "warn"
|
|
ffi-unwind-calls = "allow"
|
|
for-loops-over-fallibles = "warn"
|
|
forbidden-lint-groups = "warn"
|
|
forgetting-copy-types = "warn"
|
|
forgetting-references = "warn"
|
|
function-casts-as-integer = "warn"
|
|
function-item-references = "warn"
|
|
fuzzy-provenance-casts = "allow"
|
|
hidden-glob-reexports = "warn"
|
|
if-let-rescope = "allow"
|
|
ill-formed-attribute-input = "deny"
|
|
impl-trait-overcaptures = "allow"
|
|
impl-trait-redundant-captures = "allow"
|
|
improper-ctypes = "warn"
|
|
improper-ctypes-definitions = "warn"
|
|
incomplete-features = "warn"
|
|
incomplete-include = "deny"
|
|
ineffective-unstable-trait-impl = "deny"
|
|
inline-no-sanitize = "warn"
|
|
integer-to-ptr-transmutes = "warn"
|
|
internal-features = "warn"
|
|
invalid-atomic-ordering = "deny"
|
|
invalid-doc-attributes = "deny"
|
|
invalid-from-utf8 = "warn"
|
|
invalid-from-utf8-unchecked = "deny"
|
|
invalid-macro-export-arguments = "deny"
|
|
invalid-nan-comparisons = "warn"
|
|
invalid-null-arguments = "deny"
|
|
invalid-reference-casting = "deny"
|
|
invalid-type-param-default = "deny"
|
|
invalid-value = "warn"
|
|
irrefutable-let-patterns = "warn"
|
|
keyword-idents-2018 = "allow"
|
|
keyword-idents-2024 = "allow"
|
|
large-assignments = "warn"
|
|
late-bound-lifetime-arguments = "warn"
|
|
legacy-derive-helpers = "deny"
|
|
let-underscore-drop = "allow"
|
|
let-underscore-lock = "deny"
|
|
linker-messages = "allow"
|
|
long-running-const-eval = "deny"
|
|
lossy-provenance-casts = "allow"
|
|
macro-expanded-macro-exports-accessed-by-absolute-paths = "deny"
|
|
macro-use-extern-crate = "allow"
|
|
malformed-diagnostic-attributes = "warn"
|
|
malformed-diagnostic-format-literals = "warn"
|
|
map-unit-fn = "warn"
|
|
meta-variable-misuse = "allow"
|
|
mismatched-lifetime-syntaxes = "warn"
|
|
misplaced-diagnostic-attributes = "warn"
|
|
missing-abi = "warn"
|
|
missing-copy-implementations = "allow"
|
|
missing-debug-implementations = "allow"
|
|
missing-docs = "allow"
|
|
missing-unsafe-on-extern = "allow"
|
|
mixed-script-confusables = "warn"
|
|
multiple-supertrait-upcastable = "allow"
|
|
must-not-suspend = "allow"
|
|
mutable-transmutes = "deny"
|
|
named-arguments-used-positionally = "warn"
|
|
named-asm-labels = "deny"
|
|
never-type-fallback-flowing-into-unsafe = "deny"
|
|
no-mangle-const-items = "deny"
|
|
no-mangle-generic-items = "warn"
|
|
non-ascii-idents = "allow"
|
|
non-camel-case-types = "warn"
|
|
non-contiguous-range-endpoints = "warn"
|
|
non-exhaustive-omitted-patterns = "allow"
|
|
non-fmt-panics = "warn"
|
|
non-local-definitions = "warn"
|
|
non-shorthand-field-patterns = "warn"
|
|
non-snake-case = "warn"
|
|
non-upper-case-globals = "warn"
|
|
noop-method-call = "warn"
|
|
opaque-hidden-inferred-bound = "warn"
|
|
out-of-scope-macro-calls = "deny"
|
|
overflowing-literals = "deny"
|
|
overlapping-range-endpoints = "warn"
|
|
path-statements = "warn"
|
|
patterns-in-fns-without-body = "deny"
|
|
private-bounds = "warn"
|
|
private-interfaces = "warn"
|
|
proc-macro-derive-resolution-fallback = "deny"
|
|
ptr-to-integer-transmute-in-consts = "warn"
|
|
pub-use-of-private-extern-crate = "deny"
|
|
redundant-imports = "allow"
|
|
redundant-lifetimes = "allow"
|
|
redundant-semicolons = "warn"
|
|
refining-impl-trait-internal = "warn"
|
|
refining-impl-trait-reachable = "warn"
|
|
renamed-and-removed-lints = "warn"
|
|
repr-c-enums-larger-than-int = "warn"
|
|
repr-transparent-non-zst-fields = "deny"
|
|
resolving-to-items-shadowing-supertrait-items = "allow"
|
|
rtsan-nonblocking-async = "warn"
|
|
rust-2021-incompatible-closure-captures = "allow"
|
|
rust-2021-incompatible-or-patterns = "allow"
|
|
rust-2021-prefixes-incompatible-syntax = "allow"
|
|
rust-2021-prelude-collisions = "allow"
|
|
rust-2024-guarded-string-incompatible-syntax = "allow"
|
|
rust-2024-incompatible-pat = "allow"
|
|
rust-2024-prelude-collisions = "allow"
|
|
self-constructor-from-outer-item = "warn"
|
|
semicolon-in-expressions-from-macros = "deny"
|
|
shadowing-supertrait-items = "allow"
|
|
single-use-lifetimes = "allow"
|
|
soft-unstable = "deny"
|
|
special-module-name = "warn"
|
|
stable-features = "warn"
|
|
static-mut-refs = "warn"
|
|
suspicious-double-ref-op = "warn"
|
|
tail-expr-drop-order = "allow"
|
|
test-unstable-lint = "deny"
|
|
text-direction-codepoint-in-comment = "deny"
|
|
text-direction-codepoint-in-literal = "deny"
|
|
trivial-bounds = "warn"
|
|
trivial-casts = "allow"
|
|
trivial-numeric-casts = "allow"
|
|
type-alias-bounds = "warn"
|
|
tyvar-behind-raw-pointer = "warn"
|
|
uncommon-codepoints = "warn"
|
|
unconditional-panic = "deny"
|
|
unconditional-recursion = "warn"
|
|
uncovered-param-in-projection = "warn"
|
|
undropped-manually-drops = "deny"
|
|
unexpected-cfgs = "warn"
|
|
unfulfilled-lint-expectations = "warn"
|
|
ungated-async-fn-track-caller = "warn"
|
|
uninhabited-static = "warn"
|
|
unit-bindings = "allow"
|
|
unknown-crate-types = "deny"
|
|
unknown-diagnostic-attributes = "warn"
|
|
unknown-lints = "warn"
|
|
unnameable-test-items = "warn"
|
|
unnameable-types = "allow"
|
|
unnecessary-transmutes = "warn"
|
|
unpredictable-function-pointer-comparisons = "warn"
|
|
unqualified-local-imports = "allow"
|
|
unreachable-code = "warn"
|
|
unreachable-patterns = "warn"
|
|
unreachable-pub = "allow"
|
|
unsafe-attr-outside-unsafe = "allow"
|
|
unsafe-code = "allow"
|
|
unsafe-op-in-unsafe-fn = "allow"
|
|
unstable-features = "allow"
|
|
unstable-name-collisions = "warn"
|
|
unstable-syntax-pre-expansion = "warn"
|
|
unsupported-calling-conventions = "warn"
|
|
unused-allocation = "warn"
|
|
unused-assignments = "warn"
|
|
unused-associated-type-bounds = "warn"
|
|
unused-attributes = "warn"
|
|
unused-braces = "warn"
|
|
unused-comparisons = "warn"
|
|
unused-crate-dependencies = "allow"
|
|
unused-doc-comments = "warn"
|
|
unused-extern-crates = "allow"
|
|
unused-features = "warn"
|
|
unused-import-braces = "allow"
|
|
unused-imports = "warn"
|
|
unused-labels = "warn"
|
|
unused-lifetimes = "allow"
|
|
unused-macro-rules = "allow"
|
|
unused-macros = "warn"
|
|
unused-must-use = "warn"
|
|
unused-mut = "warn"
|
|
unused-parens = "warn"
|
|
unused-qualifications = "allow"
|
|
unused-results = "allow"
|
|
unused-unsafe = "warn"
|
|
unused-variables = "warn"
|
|
useless-deprecated = "deny"
|
|
useless-ptr-null-checks = "warn"
|
|
uses-power-alignment = "warn"
|
|
varargs-without-pattern = "warn"
|
|
variant-size-differences = "allow"
|
|
warnings = "warn"
|
|
while-true = "warn"
|
|
|
|
[workspace.lints.rustdoc]
|
|
bare-urls = "warn"
|
|
broken-intra-doc-links = "warn"
|
|
invalid-codeblock-attributes = "warn"
|
|
invalid-html-tags = "warn"
|
|
invalid-rust-codeblocks = "warn"
|
|
missing-crate-level-docs = "allow"
|
|
missing-doc-code-examples = "allow"
|
|
private-doc-tests = "allow"
|
|
private-intra-doc-links = "warn"
|
|
redundant-explicit-links = "warn"
|
|
unescaped-backticks = "allow"
|