Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed May 7, 2024
1 parent b35c358 commit bd6ab88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions txstatus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ use solana_transaction_status::parse_instruction::parse;
#[no_mangle]
pub extern "C" fn parse_instruction(bytes: *const u8, len: usize) -> Response {
// let started_at = Instant::now();
let bytes = unsafe {
let bytes = {
assert!(!bytes.is_null());
slice::from_raw_parts(bytes, len)
unsafe { slice::from_raw_parts(bytes, len) }
};
let bytes = bytes.to_vec();
// println!("[rust] params raw bytes: {:?}", bytes);
Expand Down

0 comments on commit bd6ab88

Please sign in to comment.