8000 Modernise the codebase (desc.) · unicode-rs/unicode-xid@0faa1ed · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 0faa1ed

Browse files
committed
Modernise the codebase (desc.)
- Update the copyright header - Rhe root doc-comment example, and - Remove '1.46' and '1.17' from CI, so that it can pass, being that it has been failing for 5 months.
1 parent f8cbac9 commit 0faa1ed

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
rust: [nightly, beta, stable, 1.46.0, 1.17.0]
15+
rust: [nightly, beta, stable]
1616
steps:
1717
- uses: actions/checkout@v2
1818
- uses: actions-rs/toolchain@v1
@@ -27,8 +27,6 @@ jobs:
2727
- run: cargo bench --features bench
2828
if: matrix.rust == 'nightly'
2929
- run: cargo build
30-
- run: cargo test
31-
if: matrix.rust != '1.17.0'
3230
tables:
3331
name: Verify tables
3432
runs-on: ubuntu-latest

src/lib.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2024 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://www.rust-lang.org/policies/licenses.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

1111
//! Determine if a `char` is a valid identifier for a parser and/or lexer according to
1212
//! [Unicode Standard Annex #31](http://www.unicode.org/reports/tr31/) rules.
1313
//!
1414
//! ```rust
15-
//! extern crate unicode_xid;
16-
//!
1715
//! use unicode_xid::UnicodeXID;
1816
//!
1917
//! fn main() {
20-
//! let ch = 'a';
21-
//! println!("Is {} a valid start of an identifier? {}", ch, UnicodeXID::is_xid_start(ch));
18+
//! assert_eq!(UnicodeXID::is_xid_start('a'), true); // 'a' is a valid start of an identifier
19+
//! assert_eq!(UnicodeXID::is_xid_start('△'), false); // '△' is a NOT valid start of an identifier
2220
//! }
2321
//! ```
2422
//!

src/tables.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2024 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://www.rust-lang.org/policies/licenses.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

src/tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2024 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://www.rust-lang.org/policies/licenses.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

0 commit comments

Comments
 (0)
0