Skip to content

Commit

Permalink
Remove static from slice
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Apr 30, 2021
1 parent 4c54d86 commit 6290573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/engine-jit/src/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl JITArtifact {
let metadata_len = leb128::read::unsigned(&mut inner_bytes).map_err(|_e| {
DeserializeError::CorruptedBinary("Can't read metadata size".to_string())
})?;
let metadata_slice: &'static [u8] =
let metadata_slice: &[u8] =
std::slice::from_raw_parts(&bytes[32] as *const u8, metadata_len as usize);

println!("Pointer position {:?}", &bytes[32] as *const u8);
Expand Down

0 comments on commit 6290573

Please sign in to comment.