diff --git a/Cargo.toml b/Cargo.toml index 12b148b..bfd768c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,12 +7,14 @@ authors = ["Oliver Chalk"] license = "MIT OR Apache-2.0" [lints.clippy] -pedantic = { level = "warn", priority = -1 } +arithmetic_side_effects = "warn" # See `clippy.toml`. disallowed_methods = "warn" -arithmetic_side_effects = "warn" match_bool = "allow" +missing_const_for_fn = "deny" module_name_repetitions = "allow" +pedantic = { level = "warn", priority = -1 } +trivially_copy_pass_by_ref = "deny" [dependencies] clap = { version = "4.2.7", features = ["derive"] } diff --git a/taplo.toml b/taplo.toml index 73ee440..4deef42 100644 --- a/taplo.toml +++ b/taplo.toml @@ -4,7 +4,7 @@ array_auto_expand = true allowed_blank_lines = 1 [[rule]] -keys = ["dependencies", "dev-dependencies", "build-dependencies", "toolchain", "workspace.dependencies"] +keys = ["lints.clippy", "dependencies", "dev-dependencies", "build-dependencies", "toolchain", "workspace.dependencies"] [rule.formatting] reorder_keys = true