# HG changeset patch # User Mitchell Kember <mkember@janestreet.com> # Date 1740166677 18000 # Fri Feb 21 14:37:57 2025 -0500 # Node ID c4392e8bfb9fcf199c5999536547d3a5718be40e # Parent 1ef08a0381a0522d787bbe82e875dc01c549ea56 rust: enable clippy::or_fun_call lint I confirmed that this would have prevented the issue in !1280. For details see: https://rust-lang.github.io/rust-clippy/master/index.html#/or_fun_call diff --git a/rust/Cargo.toml b/rust/Cargo.toml --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -2,3 +2,6 @@ members = ["hg-core", "hg-cpython", "hg-pyo3", "rhg", "pyo3-sharedref"] exclude = ["chg", "hgcli"] resolver = "2" + +[workspace.lints.clippy] +or_fun_call = "deny"