Skip to content

Commit b446252

Browse files
authored
enforce public items to be non-exhaustive
1 parent 84101a7 commit b446252

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ exclude = ["thumbnails"]
2020
# - Bumping the `rust-version` is a semver-minor change.
2121
rust-version = "1.56.1"
2222

23+
[lints.clippy]
24+
exhaustive_enums = { level = "deny" }
25+
exhaustive_structs = { level = "deny" }
26+
2327
[lib]
2428
name = "detect_desktop_environment"
2529
path = "src/lib.rs"

0 commit comments

Comments
 (0)