From 1fc98c51dfd771e5cd45c2feee0649ae299ab18b Mon Sep 17 00:00:00 2001 From: naosense Date: Wed, 23 Nov 2022 16:50:05 +0800 Subject: [PATCH] change default value --- clippy_lints/src/utils/conf.rs | 2 +- tests/ui-toml/suppress_lint_in_const/clippy.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/utils/conf.rs b/clippy_lints/src/utils/conf.rs index 0022044ea41..f5f0e3ef48c 100644 --- a/clippy_lints/src/utils/conf.rs +++ b/clippy_lints/src/utils/conf.rs @@ -413,7 +413,7 @@ pub(crate) fn get_configuration_metadata() -> Vec { /// suggested counterparts are unavailable in constant code. This /// configuration will cause restriction lints to trigger even /// if no suggestion can be made. - (suppress_restriction_lint_in_const: bool = true), + (suppress_restriction_lint_in_const: bool = false), } /// Search for the configuration file. diff --git a/tests/ui-toml/suppress_lint_in_const/clippy.toml b/tests/ui-toml/suppress_lint_in_const/clippy.toml index d458f53a73d..d6b6fc7f268 100644 --- a/tests/ui-toml/suppress_lint_in_const/clippy.toml +++ b/tests/ui-toml/suppress_lint_in_const/clippy.toml @@ -1 +1 @@ -suppress-restriction-lint-in-const = false \ No newline at end of file +suppress-restriction-lint-in-const = false