Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ dbg_macro = "deny"
todo = "deny"
# Forbid explicit `panic!` calls; unreachable arms belong in `unreachable!`
panic = "deny"
# Prevent panic!/todo!/unimplemented!/unreachable! inside Result/Option-returning
# functions. When a function already signals fallibility via its return type,
# any internal panic bypasses structured error propagation and crashes the
# process instead of returning Err(_)/None for the caller to handle.
panic_in_result_fn = "deny"
Loading