Skip to content

Commit 7a40b5c

Browse files
committed
Move verbose_file_reads to restriction
1 parent 2ff568d commit 7a40b5c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

clippy_lints/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10621062
LintId::of(&shadow::SHADOW_REUSE),
10631063
LintId::of(&shadow::SHADOW_SAME),
10641064
LintId::of(&strings::STRING_ADD),
1065+
LintId::of(&verbose_file_reads::VERBOSE_FILE_READS),
10651066
LintId::of(&write::PRINT_STDOUT),
10661067
LintId::of(&write::USE_DEBUG),
10671068
]);
@@ -1380,7 +1381,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13801381
LintId::of(&unwrap::PANICKING_UNWRAP),
13811382
LintId::of(&unwrap::UNNECESSARY_UNWRAP),
13821383
LintId::of(&vec::USELESS_VEC),
1383-
LintId::of(&verbose_file_reads::VERBOSE_FILE_READS),
13841384
LintId::of(&write::PRINTLN_EMPTY_STRING),
13851385
LintId::of(&write::PRINT_LITERAL),
13861386
LintId::of(&write::PRINT_WITH_NEWLINE),
@@ -1563,7 +1563,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15631563
LintId::of(&types::UNNECESSARY_CAST),
15641564
LintId::of(&types::VEC_BOX),
15651565
LintId::of(&unwrap::UNNECESSARY_UNWRAP),
1566-
LintId::of(&verbose_file_reads::VERBOSE_FILE_READS),
15671566
LintId::of(&zero_div_zero::ZERO_DIVIDED_BY_ZERO),
15681567
]);
15691568

clippy_lints/src/verbose_file_reads.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare_clippy_lint! {
2626
/// let mut bytes = fs::read("foo.txt").unwrap();
2727
/// ```
2828
pub VERBOSE_FILE_READS,
29-
complexity,
29+
restriction,
3030
"use of `File::read_to_end` or `File::read_to_string`"
3131
}
3232

src/lintlist/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2410,7 +2410,7 @@ pub const ALL_LINTS: [Lint; 362] = [
24102410
},
24112411
Lint {
24122412
name: "verbose_file_reads",
2413-
group: "complexity",
2413+
group: "restriction",
24142414
desc: "use of `File::read_to_end` or `File::read_to_string`",
24152415
deprecation: None,
24162416
module: "verbose_file_reads",

0 commit comments

Comments
 (0)