Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Lips7 committed Sep 26, 2024
1 parent 1796797 commit 45ede98
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 51 deletions.
80 changes: 40 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion matcher_c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ crate-type = ["cdylib", "rlib"]

[dependencies]
matcher_rs = { path = "../matcher_rs", version = "0.5.4" }
sonic-rs = "0.3.12"
sonic-rs = "0.3.13"
4 changes: 2 additions & 2 deletions matcher_java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>22</maven.compiler.source>
<maven.compiler.target>22</maven.compiler.target>
<maven.compiler.source>23</maven.compiler.source>
<maven.compiler.target>23</maven.compiler.target>
</properties>

<dependencies>
Expand Down
6 changes: 3 additions & 3 deletions matcher_py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ crate-type = ["cdylib"]

[dependencies]
matcher_rs = { path = "../matcher_rs", version = "0.5.4" }
pyo3 = { version = "0.22.2", features = ["extension-module"] }
sonic-rs = "0.3.12"
pyo3 = { version = "0.22.3", features = ["extension-module"] }
sonic-rs = "0.3.13"

[build-dependencies]
pyo3-build-config = "0.22.2"
pyo3-build-config = "0.22.3"
6 changes: 3 additions & 3 deletions matcher_py/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ impl Matcher {
/// - [`Vec<MatchResult<'_>>`]: A vector of [MatchResult] instances, where each entry
/// indicates a match found within the text according to the patterns defined within the matcher.
#[pyo3(signature=(text))]
fn process<'a>(&'a self, text: &'a str) -> Vec<MatchResult<'_>> {
fn process<'a>(&'a self, text: &'a str) -> Vec<MatchResult<'a>> {
self.matcher
.process(text)
.into_iter()
Expand All @@ -300,7 +300,7 @@ impl Matcher {
/// - [`HashMap<u32, Vec<MatchResult<'_>>>`]: A mapping of match IDs to lists of match results,
/// indicating all patterns found in the text.
#[pyo3(signature=(text))]
fn word_match<'a>(&'a self, text: &'a str) -> HashMap<u32, Vec<MatchResult<'_>>> {
fn word_match<'a>(&'a self, text: &'a str) -> HashMap<u32, Vec<MatchResult<'a>>> {
self.matcher
.word_match(text)
.into_iter()
Expand Down Expand Up @@ -461,7 +461,7 @@ impl SimpleMatcher {
/// - `Vec<SimpleResult>`: A vector of `SimpleResult` instances, each encapsulating
/// a match found in the text.
#[pyo3(signature=(text))]
fn process<'a>(&'a self, text: &'a str) -> Vec<SimpleResult> {
fn process<'a>(&'a self, text: &'a str) -> Vec<SimpleResult<'a>> {
self.simple_matcher
.process(text)
.into_iter()
Expand Down
4 changes: 2 additions & 2 deletions matcher_rs/src/matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ impl Matcher {
/// information about a match found in the input text.
///
/// If the input text is empty, the function returns an empty [HashMap].
pub fn word_match<'a>(&'a self, text: &'a str) -> HashMap<u32, Vec<MatchResult>> {
pub fn word_match<'a>(&'a self, text: &'a str) -> HashMap<u32, Vec<MatchResult<'a>>> {
if text.is_empty() {
return HashMap::new();
}
Expand Down Expand Up @@ -700,7 +700,7 @@ impl Matcher {
fn _word_match_with_processed_text_process_type_set<'a>(
&'a self,
processed_text_process_type_set: &[(Cow<'a, str>, IdSet)],
) -> HashMap<u32, Vec<MatchResult>> {
) -> HashMap<u32, Vec<MatchResult<'a>>> {
let mut match_result_dict = HashMap::new();
let mut failed_match_table_id_set = IdSet::new();

Expand Down

0 comments on commit 45ede98

Please sign in to comment.