Skip to content

Commit 07a89cf

Browse files
committed
fixed formatting
1 parent 4656a2b commit 07a89cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

program/rust/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use solana_program::entrypoint::deserialize;
66
use solana_program::pubkey::Pubkey;
77
use solana_program::sysvar::slot_history::AccountInfo;
88

9-
109
//Below is a high lever description of the rust/c setup.
1110

1211
//As we migrate from C to Rust, our Rust code needs to be able to interract with C
@@ -45,7 +44,8 @@ pub extern "C" fn entrypoint(input: *mut u8) -> u64 {
4544
panic!("insufficient data, could not parse instruction");
4645
}
4746

48-
let cmd_data = c_oracle_header::cmd_hdr::try_from_slice(&instruction_data[..cmd_hdr_size]).unwrap();
47+
let cmd_data =
48+
c_oracle_header::cmd_hdr::try_from_slice(&instruction_data[..cmd_hdr_size]).unwrap();
4949

5050
if cmd_data.ver_ != c_oracle_header::PC_VERSION {
5151
//FIXME: I am not sure what's best to do here (this is copied from C)

0 commit comments

Comments
 (0)