Merge pull request #3834 from roc-lang/rust-1.63-clippy

rust 1.63 clippy
This commit is contained in:
Richard Feldman 2022-08-27 21:15:36 -04:00 committed by GitHub
commit 3ca9202e3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 14 additions and 19 deletions

View file

@ -162,7 +162,7 @@ macro_rules! run_jit_function_dynamic_type {
// first field is a char pointer (to the error message)
// read value, and transmute to a pointer
let ptr_as_int = *(result as *const u64).offset(1);
let ptr = std::mem::transmute::<u64, *mut c_char>(ptr_as_int);
let ptr = ptr_as_int as *mut c_char;
// make CString (null-terminated)
let raw = CString::from_raw(ptr);