diff options
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 |