diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 1ef08a0381a0522d787bbe82e875dc01c549ea56_cnVzdC9DYXJnby50b21s..c4392e8bfb9fcf199c5999536547d3a5718be40e_cnVzdC9DYXJnby50b21s 100644
--- 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"