BE: clippy clean

Summary:
We are getting some clippy warnings about [complex types](https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity), related to eqwalizer queries on salsa, e.g.

```
Result<Arc<BTreeMap<ModuleName, BTreeMap<Id, Arc<TypeDecl>>>>, Error>;
```

We believe this type is clear enough, so raise the threshold of the clippy lint to allow it.

Also fix one other clippy warning about unreachable code.

Reviewed By: ilya-klyuchnikov

Differential Revision: D74248916

fbshipit-source-id: 7e9e603729ce480a6c193f9cba6129ee637be880
This commit is contained in:
Alan Zimmerman 2025-05-06 07:35:41 -07:00 committed by Facebook GitHub Bot
parent 42be64e8c8
commit af4fc58e2e
2 changed files with 9 additions and 1 deletions

9
clippy.toml Normal file
View file

@ -0,0 +1,9 @@
# Clippy parameter settings
# See https://doc.rust-lang.org/clippy/lint_configuration.html for possible settings
# Default is 250
# see https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
type-complexity-threshold = 350

View file

@ -96,7 +96,6 @@ fn check_function(
&formatted_src_text,
) {
diagnostics.push(diagnostic);
Some(());
}
}
}