diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-03-26 15:52:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 15:52:20 +0000 |
commit | 3b61104e2a8984255f74827b0f1c23476ccd8209 (patch) | |
tree | 43228946e39342e6c71f87ae720f93e7f8c63901 /cli/tools/lint/mod.rs | |
parent | d6452b39460ee46ade1ed9a5c95e469fd23a812c (diff) |
refactor(lsp): unify config file data into ConfigTree (#23032)
Diffstat (limited to 'cli/tools/lint/mod.rs')
-rw-r--r-- | cli/tools/lint/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tools/lint/mod.rs b/cli/tools/lint/mod.rs index cb282663c..fec664784 100644 --- a/cli/tools/lint/mod.rs +++ b/cli/tools/lint/mod.rs @@ -857,6 +857,12 @@ pub struct ConfiguredRules { pub no_slow_types: bool, } +impl Default for ConfiguredRules { + fn default() -> Self { + get_configured_rules(Default::default(), None) + } +} + impl ConfiguredRules { fn incremental_cache_state(&self) -> Vec<&str> { // use a hash of the rule names in order to bust the cache |