Skip to content

Commit

Permalink
fix: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Sep 26, 2024
1 parent e1940f3 commit a97ba90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
include:
- os: windows-2019
- os: windows-2022
- os: macos-11
- os: macos-12
- os: macos-13
- os: ubuntu-20.04
- os: ubuntu-22.04
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 3 additions & 1 deletion crates/open_jtalk/src/text2mecab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ pub fn text2mecab(input: impl AsRef<str>) -> Result<String, Text2MecabError> {

Ok(String::from_utf8(output).unwrap())
} else {
Err(unsafe { std::mem::transmute(result) })
Err(unsafe {
std::mem::transmute::<open_jtalk_sys::text2mecab_result_t, Text2MecabError>(result)
})
}
}

Expand Down

0 comments on commit a97ba90

Please sign in to comment.