Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Commit 41bdcfe

Browse files
committed
bump version to 0.5.0
1 parent 003c45d commit 41bdcfe

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sre-engine"
3-
version = "0.4.3"
3+
version = "0.5.0"
44
authors = ["Kangzhi Shi <shikangzhi@gmail.com>", "RustPython Team"]
55
description = "A low-level implementation of Python's SRE regex engine"
66
repository = "https://github.com/RustPython/sre-engine"

src/engine.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// good luck to those that follow; here be dragons
22

3-
use crate::constants::SreInfo;
4-
5-
use super::constants::{SreAtCode, SreCatCode, SreOpcode};
3+
use super::constants::{SreAtCode, SreCatCode, SreOpcode, SreInfo};
64
use super::MAXREPEAT;
75
use optional::Optioned;
86
use std::convert::TryFrom;
@@ -284,7 +282,7 @@ fn _match<S: StrDrive>(req: &Request<S>, state: &mut State, ctx: MatchContext) -
284282
};
285283

286284
popped_result = 'result: loop {
287-
let yield_ = 'context: loop {
285+
let yielded = 'context: loop {
288286
match ctx.jump {
289287
Jump::OpCode => {}
290288
Jump::Assert1 => {
@@ -864,7 +862,7 @@ fn _match<S: StrDrive>(req: &Request<S>, state: &mut State, ctx: MatchContext) -
864862
}
865863
};
866864
context_stack.push(ctx);
867-
context_stack.push(yield_);
865+
context_stack.push(yielded);
868866
continue 'coro;
869867
};
870868
}

0 commit comments

Comments
 (0)