diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index dfc150cf2bc17615f19179efba3c642be741961f_cnVzdC9DYXJnby50b21s..68971722cdf9928c8bcb722b905d7ccd4bf38de3_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"