diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 72d8dfb73962cbf57560d9c060ae85e7acfefcb3_cnVzdC9DYXJnby50b21s..d923988f6a8c4415c197b80cd49c908cdebaf26c_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"