We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c565c8 commit b12a276Copy full SHA for b12a276
regex-syntax/src/utf8.rs
@@ -302,9 +302,9 @@ impl Utf8Sequences {
302
/// Create a new iterator over UTF-8 byte ranges for the scalar value range
303
/// given.
304
pub fn new(start: char, end: char) -> Self {
305
- let mut it = Utf8Sequences { range_stack: vec![] };
306
- it.push(u32::from(start), u32::from(end));
307
- it
+ let range =
+ ScalarRange { start: u32::from(start), end: u32::from(end) };
+ Utf8Sequences { range_stack: vec![range] }
308
}
309
310
/// reset resets the scalar value range.
0 commit comments