From edb51ece86bcd0bde7da52f893bdd0e98e5735d5 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sun, 22 Jan 2023 20:03:28 -0800 Subject: [PATCH] Disable a clippy warning that we can't satisfy for Syntax --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 40bb916502..179f17f093 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,6 +18,10 @@ // Purely stylistic, and ignores whether there are explanatory // comments in the if/else. #![allow(clippy::bool_to_int_with_if)] +// Good practice in general, but a necessary evil for Syntax. Its Hash +// implementation does not consider the mutable fields, so it is still +// correct. +#![allow(clippy::mutable_key_type)] mod constants; mod diff;