mirror of
https://gitee.com/openharmony/third_party_rust_unicode-ident
synced 2024-11-26 17:21:06 +00:00
Make compatible with rustc 1.31
This commit is contained in:
parent
fd81452c0a
commit
f071db5000
@ -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"
|
||||
|
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "unicode-ident-diagram"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
|
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "unicode-ident-generate"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user