about summary refs log tree commit diff
path: root/tvix/clippy.toml
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-11-05T18·02+0300
committerclbot <clbot@tvl.fyi>2023-11-05T20·28+0000
commit87d3fac6762b5b2f71d766eadf652d7762213d2b (patch)
treee7e8e4e7246c20e4f797cec7c31fa0f913e2ee15 /tvix/clippy.toml
parent2e1399698b366af4a1579cdcbd9363633b8bc632 (diff)
chore(tvix): add missing clippy attributes & config r/6958
For cases where clippy lints don't apply to us, or something is
misfiring, add appropriate configuration.

Relates to b/321.

Change-Id: I0af453910b4a4112bf685b2a8e9a73de10ec87ea
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9965
Reviewed-by: flokli <flokli@flokli.de>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/clippy.toml')
-rw-r--r--tvix/clippy.toml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tvix/clippy.toml b/tvix/clippy.toml
new file mode 100644
index 000000000000..be7709684c6f
--- /dev/null
+++ b/tvix/clippy.toml
@@ -0,0 +1,6 @@
+# prevents a false-positive lint on our types containing bytes::Bytes
+# https://rust-lang.github.io/rust-clippy/master/index.html#/mutable_key_type
+ignore-interior-mutability = [
+  "bytes::Bytes",
+  "tvix_castore::digests::B3Digest"
+]