Make compatible with rustc 1.31

This commit is contained in:
David Tolnay 2022-05-16 14:41:36 -07:00
parent fd81452c0a
commit f071db5000
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
4 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,8 @@
name = "unicode-ident"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>"]
edition = "2021"
edition = "2018"
rust-version = "1.31"
license = "MIT OR Apache-2.0"
description = "Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31"
repository = "https://github.com/dtolnay/unicode-ident"

View File

@ -1,7 +1,7 @@
[package]
name = "unicode-ident-diagram"
version = "0.0.0"
edition = "2021"
edition = "2018"
publish = false
[dependencies]

View File

@ -1,5 +1,5 @@
[package]
name = "unicode-ident-generate"
version = "0.0.0"
edition = "2021"
edition = "2018"
publish = false

View File

@ -246,7 +246,7 @@
#[rustfmt::skip]
mod tables;
use tables::{ASCII_CONTINUE, ASCII_START, CHUNK, LEAF, TRIE_CONTINUE, TRIE_START};
use crate::tables::{ASCII_CONTINUE, ASCII_START, CHUNK, LEAF, TRIE_CONTINUE, TRIE_START};
pub fn is_xid_start(ch: char) -> bool {
if ch.is_ascii() {