Skip to content

Commit

Permalink
fix: FINALLY!!! now redo my epic changes again :)
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Oct 22, 2024
1 parent 987da93 commit 481ab64
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
with:
distribution: oracle
java-version: 21
- uses: gradle/actions/setup-gradle@v3
- uses: gradle/actions/setup-gradle@v4
- name: Download java artifact
uses: actions/download-artifact@v4
with:
Expand Down
6 changes: 2 additions & 4 deletions bindings/native/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,7 @@ macro_rules! comparison_fn {
other_length: usize,
) -> bool {
utf8::get(other_str, other_length)
.map(|s| (*cured).$name(s))
.unwrap_or_default()
.map_or_else(Default::default, |s| (*cured).$name(s))
}

#[no_mangle]
Expand All @@ -442,8 +441,7 @@ macro_rules! comparison_fn {
other_length: usize,
) -> bool {
utf16::get(other_str, other_length)
.map(|vec| unsafe { (*cured).$name(str::from_utf8(&vec).unwrap()) })
.unwrap_or_default()
.map_or_else(Default::default, |vec| unsafe { (*cured).$name(str::from_utf8(&vec).unwrap()) })
}
}
)*};
Expand Down
4 changes: 2 additions & 2 deletions bindings/wasm/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"license": "MIT",
"main": "index.mjs",
"dependencies": {
"@fastify/static": "^7.0.0",
"fastify": "^4.21.0",
"@fastify/static": "^8.0.0",
"fastify": "^5.0.0",
"puppeteer": "^23.0.2"
},
"engines": {
Expand Down
3 changes: 1 addition & 2 deletions core/src/translation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ where

chars
.next()
.map(|next_char| chars.next().is_none() && similar::is(*ch as _, next_char))
.unwrap_or_default()
.map_or_else(Default::default, |next_char| chars.next().is_none() && similar::is(*ch as _, next_char))
},

Self::String(s) => Matcher::is_equal(s, o),
Expand Down

0 comments on commit 481ab64

Please sign in to comment.