diff options
| author | Andy Russell <arussell123@gmail.com> | 2019-06-23 14:19:18 -0400 |
|---|---|---|
| committer | Andy Russell <arussell123@gmail.com> | 2019-07-12 22:51:37 -0400 |
| commit | dee3d27d9d69aa66429cec5fb8ca7cdd46ab6019 (patch) | |
| tree | 897a8e96e8c4e2d1f4b8dac11e3b15913ac4dd56 | |
| parent | 71f9384e3bec467158a628e2d11e77ffada16a90 (diff) | |
| download | rust-dee3d27d9d69aa66429cec5fb8ca7cdd46ab6019.tar.gz rust-dee3d27d9d69aa66429cec5fb8ca7cdd46ab6019.zip | |
allow clippy::unreadable_literal in unicode tables
Also modifies the generation script to emit 2018 edition paths.
| -rw-r--r-- | src/libcore/unicode/tables.rs | 2 | ||||
| -rwxr-xr-x | src/libcore/unicode/unicode.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/unicode/tables.rs b/src/libcore/unicode/tables.rs index 758cdb0b7cf..2659ba61e0c 100644 --- a/src/libcore/unicode/tables.rs +++ b/src/libcore/unicode/tables.rs @@ -1,6 +1,6 @@ // NOTE: The following code was generated by "./unicode.py", do not edit directly -#![allow(missing_docs, non_upper_case_globals, non_snake_case)] +#![allow(missing_docs, non_upper_case_globals, non_snake_case, clippy::unreadable_literal)] use crate::unicode::version::UnicodeVersion; use crate::unicode::bool_trie::{BoolTrie, SmallBoolTrie}; diff --git a/src/libcore/unicode/unicode.py b/src/libcore/unicode/unicode.py index a0539cd9ca9..5389d1cf803 100755 --- a/src/libcore/unicode/unicode.py +++ b/src/libcore/unicode/unicode.py @@ -79,10 +79,10 @@ FETCH_URL_VERSION = "ftp://ftp.unicode.org/Public/{version}/ucd/{filename}" PREAMBLE = """\ // NOTE: The following code was generated by "./unicode.py", do not edit directly -#![allow(missing_docs, non_upper_case_globals, non_snake_case)] +#![allow(missing_docs, non_upper_case_globals, non_snake_case, clippy::unreadable_literal)] -use unicode::version::UnicodeVersion; -use unicode::bool_trie::{{BoolTrie, SmallBoolTrie}}; +use crate::unicode::version::UnicodeVersion; +use crate::unicode::bool_trie::{{BoolTrie, SmallBoolTrie}}; """.format(year=datetime.datetime.now().year) # Mapping taken from Table 12 from: |
