-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
7 lines (7 loc) · 883 Bytes
/
Copy pathclippy.toml
File metadata and controls
7 lines (7 loc) · 883 Bytes
1
2
3
4
5
6
7
disallowed-methods = [
{ path = "std::option::Option::unwrap_or", reason = "a default is a decision — hoist it to the parse boundary or a named const; #[expect] with a reason if this site truly owns it" },
{ path = "std::result::Result::unwrap_or", reason = "a default is a decision — hoist it to the parse boundary or a named const; #[expect] with a reason if this site truly owns it" },
{ path = "std::option::Option::unwrap_or_default", reason = "silent default — name the value and the decision, or restructure so the gap can't occur" },
{ path = "std::result::Result::unwrap_or_default", reason = "silent default — name the value and the decision, or restructure so the gap can't occur" },
{ path = "std::result::Result::ok", reason = "swallows the error — propagate or handle it; #[expect] with a reason if the error is genuinely irrelevant" },
]