Skip to content

Commit dee3d27

Browse files
committed
allow clippy::unreadable_literal in unicode tables
Also modifies the generation script to emit 2018 edition paths.
1 parent 71f9384 commit dee3d27

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libcore/unicode/tables.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// NOTE: The following code was generated by "./unicode.py", do not edit directly
22

3-
#![allow(missing_docs, non_upper_case_globals, non_snake_case)]
3+
#![allow(missing_docs, non_upper_case_globals, non_snake_case, clippy::unreadable_literal)]
44

55
use crate::unicode::version::UnicodeVersion;
66
use crate::unicode::bool_trie::{BoolTrie, SmallBoolTrie};

src/libcore/unicode/unicode.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ class UnicodeFiles(object):
7979
PREAMBLE = """\
8080
// NOTE: The following code was generated by "./unicode.py", do not edit directly
8181
82-
#![allow(missing_docs, non_upper_case_globals, non_snake_case)]
82+
#![allow(missing_docs, non_upper_case_globals, non_snake_case, clippy::unreadable_literal)]
8383
84-
use unicode::version::UnicodeVersion;
85-
use unicode::bool_trie::{{BoolTrie, SmallBoolTrie}};
84+
use crate::unicode::version::UnicodeVersion;
85+
use crate::unicode::bool_trie::{{BoolTrie, SmallBoolTrie}};
8686
""".format(year=datetime.datetime.now().year)
8787

8888
# Mapping taken from Table 12 from:

0 commit comments

Comments
 (0)