enforce stricter lints, drop discarded results properly
This commit is contained in:
@@ -6,6 +6,37 @@ authors = ["lashman <lashman@robotbrush.com>"]
|
||||
edition = "2021"
|
||||
rust-version = "1.94"
|
||||
|
||||
# Lint policy. pedantic is on wholesale; from the restriction group only the
|
||||
# lints that catch real defects are enabled, since that group is documented as
|
||||
# cherry-pick-only and its members contradict each other (absolute_paths vs
|
||||
# unused_qualifications, implicit_return vs semicolon_outside_block).
|
||||
[lints.rust]
|
||||
unreachable_pub = "warn"
|
||||
unused_qualifications = "warn"
|
||||
unsafe_op_in_unsafe_fn = "warn"
|
||||
|
||||
[lints.clippy]
|
||||
pedantic = { level = "warn", priority = -1 }
|
||||
|
||||
# Correctness-first selection from restriction.
|
||||
undocumented_unsafe_blocks = "warn"
|
||||
multiple_unsafe_ops_per_block = "warn"
|
||||
indexing_slicing = "warn"
|
||||
unwrap_used = "warn"
|
||||
expect_used = "warn"
|
||||
panic = "warn"
|
||||
unwrap_in_result = "warn"
|
||||
borrow_as_ptr = "warn"
|
||||
ptr_as_ptr = "warn"
|
||||
ref_as_ptr = "warn"
|
||||
ptr_cast_constness = "warn"
|
||||
as_pointer_underscore = "warn"
|
||||
cast_ptr_alignment = "warn"
|
||||
let_underscore_must_use = "warn"
|
||||
let_underscore_untyped = "warn"
|
||||
else_if_without_else = "warn"
|
||||
exit = "warn"
|
||||
|
||||
[lib]
|
||||
name = "bytesize_lib"
|
||||
crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
|
||||
Reference in New Issue
Block a user