We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c1cc35 commit ff7f074Copy full SHA for ff7f074
Cargo.toml
@@ -34,6 +34,11 @@ unsafe_code = "forbid"
34
unused_qualifications = "warn"
35
36
[workspace.lints.clippy]
37
+# Restrictions
38
+panic_in_result_fn = "warn"
39
+todo = "warn"
40
+unwrap_used = "warn"
41
+# Pedantics without being too noisy
42
cargo = { level = "warn", priority = -1 }
43
pedantic = { level = "warn", priority = -1 }
44
src/renamer.rs
@@ -253,7 +253,7 @@ impl ParseCallbacks for Renamer {
253
.next()
254
.or_else(|| {
255
if self.debug {
256
- let name = enum_name.unwrap();
+ let name = enum_name.unwrap_or_default();
257
println!("cargo::warning=Unrecognized enum variant {name} :: {value}");
258
}
259
None
0 commit comments