Skip to content

Commit 06ec1a3

Browse files
committed
Change unseparated_literal_suffix type to restriction
1 parent 30fe4ba commit 06ec1a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10451045
LintId::of(methods::UNWRAP_USED),
10461046
LintId::of(misc::FLOAT_CMP_CONST),
10471047
LintId::of(misc_early::UNNEEDED_FIELD_PATTERN),
1048+
LintId::of(misc_early::UNSEPARATED_LITERAL_SUFFIX),
10481049
LintId::of(missing_doc::MISSING_DOCS_IN_PRIVATE_ITEMS),
10491050
LintId::of(missing_enforced_import_rename::MISSING_ENFORCED_IMPORT_RENAMES),
10501051
LintId::of(missing_inline::MISSING_INLINE_IN_PUBLIC_ITEMS),
@@ -1135,7 +1136,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11351136
LintId::of(methods::MAP_FLATTEN),
11361137
LintId::of(methods::MAP_UNWRAP_OR),
11371138
LintId::of(misc::USED_UNDERSCORE_BINDING),
1138-
LintId::of(misc_early::UNSEPARATED_LITERAL_SUFFIX),
11391139
LintId::of(mut_mut::MUT_MUT),
11401140
LintId::of(needless_bitwise_bool::NEEDLESS_BITWISE_BOOL),
11411141
LintId::of(needless_borrow::REF_BINDING_TO_REFERENCE),

clippy_lints/src/misc_early/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ declare_clippy_lint! {
128128
/// let y = 123832_i32;
129129
/// ```
130130
pub UNSEPARATED_LITERAL_SUFFIX,
131-
pedantic,
131+
restriction,
132132
"literals whose suffix is not separated by an underscore"
133133
}
134134

0 commit comments

Comments
 (0)