allow clippy::unreadable_literal in unicode tables

Also modifies the generation script to emit 2018 edition paths.
This commit is contained in:
Andy Russell 2019-06-23 14:19:18 -04:00
parent 71f9384e3b
commit dee3d27d9d
No known key found for this signature in database
GPG key ID: BE2221033EDBC374
2 changed files with 4 additions and 4 deletions

View file

@ -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};

View file

@ -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: