Skip to content

Commit 9255f5b

Browse files
committed
./util/dev update_lints.
1 parent fecd165 commit 9255f5b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

clippy_lints/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
998998
LintId::of(&matches::WILDCARD_ENUM_MATCH_ARM),
999999
LintId::of(&mem_forget::MEM_FORGET),
10001000
LintId::of(&methods::CLONE_ON_REF_PTR),
1001+
LintId::of(&methods::FILETYPE_IS_FILE),
10011002
LintId::of(&methods::GET_UNWRAP),
10021003
LintId::of(&methods::OPTION_EXPECT_USED),
10031004
LintId::of(&methods::OPTION_UNWRAP_USED),
@@ -1189,7 +1190,6 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
11891190
LintId::of(&methods::CLONE_DOUBLE_REF),
11901191
LintId::of(&methods::CLONE_ON_COPY),
11911192
LintId::of(&methods::EXPECT_FUN_CALL),
1192-
LintId::of(&methods::FILETYPE_IS_FILE),
11931193
LintId::of(&methods::FILTER_NEXT),
11941194
LintId::of(&methods::FLAT_MAP_IDENTITY),
11951195
LintId::of(&methods::INEFFICIENT_TO_STRING),
@@ -1372,7 +1372,6 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
13721372
LintId::of(&matches::SINGLE_MATCH),
13731373
LintId::of(&mem_replace::MEM_REPLACE_OPTION_WITH_NONE),
13741374
LintId::of(&methods::CHARS_LAST_CMP),
1375-
LintId::of(&methods::FILETYPE_IS_FILE),
13761375
LintId::of(&methods::INTO_ITER_ON_REF),
13771376
LintId::of(&methods::ITER_CLONED_COLLECT),
13781377
LintId::of(&methods::ITER_SKIP_NEXT),

src/lintlist/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ pub const ALL_LINTS: [Lint; 343] = [
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)