mirror of
https://github.com/WhatsApp/erlang-language-platform.git
synced 2025-12-23 12:26:48 +00:00
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:
parent
42be64e8c8
commit
af4fc58e2e
2 changed files with 9 additions and 1 deletions
9
clippy.toml
Normal file
9
clippy.toml
Normal 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
|
||||
|
||||
|
|
@ -96,7 +96,6 @@ fn check_function(
|
|||
&formatted_src_text,
|
||||
) {
|
||||
diagnostics.push(diagnostic);
|
||||
Some(());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue