Skip to content

Use regex-charclass 1.3's Char::index and Char::from_index - #30

Merged
alexvbrdn merged 1 commit into
mainfrom
use-char-index
Nov 19, 2026
Merged

alexvbrdn merged 1 commit into
mainfrom
use-char-index

Conversation

@alexvbrdn

@alexvbrdn alexvbrdn commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What this changes

regex-charclass 1.3.0 exposes the char <-> contiguous index mapping that SURROGATES, scalar and from_scalar duplicated, so drop the local copy.

Requires regex-charclass 1.3.0 on crates.io; Cargo.lock still pins 1.2.0 and must be refreshed (cargo update -p regex-charclass) once it is published.

Checklist

  • cargo fmt --all --check and cargo clippy --all-targets -- -D warnings pass
  • cargo test and cargo test --no-default-features pass
  • New public items are documented
  • A test covers the change
  • CHANGELOG.md is updated under ## [Unreleased]
  • The change builds on Rust 1.88, or the MSRV bump is intentional and noted

regex-charclass 1.3.0 exposes the char <-> contiguous index mapping that SURROGATES, scalar and from_scalar duplicated, so drop the local copy.

Requires regex-charclass 1.3.0 on crates.io; Cargo.lock still pins 1.2.0 and must be refreshed (cargo update -p regex-charclass) once it is published.
@alexvbrdn alexvbrdn self-assigned this Nov 19, 2026
@alexvbrdn
alexvbrdn merged commit 7d54d77 into main Nov 19, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant