Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Jan 22, 2024
1 parent a92ecbb commit 5e6c69c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ jobs:
- uses: actions/checkout@v3
- name: Build
id: build
uses: vmactions/freebsd-vm@v0.3.0
uses: vmactions/freebsd-vm@v1
env:
DEBUG: napi:*
RUSTUP_HOME: /usr/local/rustup
Expand Down
1 change: 1 addition & 0 deletions bindings/native/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const unsafe fn str_from_ptr(input_ptr: *mut u8, input_size: usize) -> &'static
str::from_utf8_unchecked(slice::from_raw_parts(input_ptr, input_size))
}

#[no_mangle]
pub unsafe extern "C" fn decancer_error(error: u8, string_size: *mut u8) -> *const u8 {
let err = transmute::<_, decancer::Error>(error);
let msg = <decancer::Error as AsRef<str>>::as_ref(&err);
Expand Down

0 comments on commit 5e6c69c

Please sign in to comment.