Skip to content

Commit 2909bc3

Browse files
committed
./util/dev update_lints.
1 parent a73822d commit 2909bc3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
10061006
LintId::of(&matches::WILDCARD_ENUM_MATCH_ARM),
10071007
LintId::of(&mem_forget::MEM_FORGET),
10081008
LintId::of(&methods::CLONE_ON_REF_PTR),
1009+
LintId::of(&methods::FILETYPE_IS_FILE),
10091010
LintId::of(&methods::GET_UNWRAP),
10101011
LintId::of(&methods::OPTION_EXPECT_USED),
10111012
LintId::of(&methods::OPTION_UNWRAP_USED),
@@ -1200,7 +1201,6 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
12001201
LintId::of(&methods::CLONE_DOUBLE_REF),
12011202
LintId::of(&methods::CLONE_ON_COPY),
12021203
LintId::of(&methods::EXPECT_FUN_CALL),
1203-
LintId::of(&methods::FILETYPE_IS_FILE),
12041204
LintId::of(&methods::FILTER_NEXT),
12051205
LintId::of(&methods::FLAT_MAP_IDENTITY),
12061206
LintId::of(&methods::INEFFICIENT_TO_STRING),
@@ -1386,7 +1386,6 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
13861386
LintId::of(&mem_replace::MEM_REPLACE_OPTION_WITH_NONE),
13871387
LintId::of(&mem_replace::MEM_REPLACE_WITH_DEFAULT),
13881388
LintId::of(&methods::CHARS_LAST_CMP),
1389-
LintId::of(&methods::FILETYPE_IS_FILE),
13901389
LintId::of(&methods::INTO_ITER_ON_REF),
13911390
LintId::of(&methods::ITER_CLONED_COLLECT),
13921391
LintId::of(&methods::ITER_NTH_ZERO),

src/lintlist/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ pub const ALL_LINTS: [Lint; 346] = [
562562
},
563563
Lint {
564564
name: "filetype_is_file",
565-
group: "style",
566-
desc: "`FileType::is_file` is not recommended to test for readable file type.",
565+
group: "restriction",
566+
desc: "`FileType::is_file` is not recommended to test for readable file type",
567567
deprecation: None,
568568
module: "methods",
569569
},

0 commit comments

Comments
 (0)