# Generated by gimme-the-lint — Clippy lint levels
#
# Clippy lint GROUPS cannot be enabled from clippy.toml. The canonical
# mechanism (Cargo 1.74+) is the [lints.clippy] table in Cargo.toml.
# gimme-the-lint appends this block to your Cargo.toml only if no [lints]
# table already exists. For a workspace, put it under
# [workspace.lints.clippy] in the root Cargo.toml and add `[lints]
# workspace = true` to each member crate instead.

[lints.clippy]
# priority = -1 lets the individual "allow" overrides below win.
pedantic = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }

# Pedantic lints that are too noisy in idiomatic Rust — allowed back.
module_name_repetitions = "allow"   # fires on config::Config, error::Error, ...
must_use_candidate = "allow"        # demands #[must_use] almost everywhere
missing_errors_doc = "allow"        # requires an # Errors doc section
missing_panics_doc = "allow"        # requires a # Panics doc section
default_trait_access = "allow"      # Default::default() vs T::default() — style
map_unwrap_or = "allow"             # map_or style — team preference
