Skip to content

Commit 28c225f

Browse files
committed
Move non_ascii_literal to restriction
1 parent 310ecb0 commit 28c225f

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

clippy_lints/src/lib.register_pedantic.rs

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec![
8989
LintId::of(transmute::TRANSMUTE_PTR_TO_PTR),
9090
LintId::of(types::LINKEDLIST),
9191
LintId::of(types::OPTION_OPTION),
92-
LintId::of(unicode::NON_ASCII_LITERAL),
9392
LintId::of(unicode::UNICODE_NOT_NFC),
9493
LintId::of(unit_types::LET_UNIT_VALUE),
9594
LintId::of(unnecessary_wraps::UNNECESSARY_WRAPS),

clippy_lints/src/lib.register_restriction.rs

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ store.register_group(true, "clippy::restriction", Some("clippy_restriction"), ve
5959
LintId::of(types::RC_BUFFER),
6060
LintId::of(types::RC_MUTEX),
6161
LintId::of(undocumented_unsafe_blocks::UNDOCUMENTED_UNSAFE_BLOCKS),
62+
LintId::of(unicode::NON_ASCII_LITERAL),
6263
LintId::of(unnecessary_self_imports::UNNECESSARY_SELF_IMPORTS),
6364
LintId::of(unwrap_in_result::UNWRAP_IN_RESULT),
6465
LintId::of(verbose_file_reads::VERBOSE_FILE_READS),

clippy_lints/src/unicode.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ declare_clippy_lint! {
4545
/// let x = String::from("\u{20ac}");
4646
/// ```
4747
pub NON_ASCII_LITERAL,
48-
pedantic,
48+
restriction,
4949
"using any literal non-ASCII chars in a string literal instead of using the `\\u` escape"
5050
}
5151

0 commit comments

Comments
 (0)