Pacify clippy
This commit is contained in:
@ -161,7 +161,7 @@ fn get_data_slice<'a>(
|
||||
if signature_index >= instruction_datas.len() {
|
||||
return Err(PrecompileError::InvalidDataOffsets);
|
||||
}
|
||||
&instruction_datas[signature_index]
|
||||
instruction_datas[signature_index]
|
||||
};
|
||||
|
||||
let start = offset_start as usize;
|
||||
|
@ -24,7 +24,7 @@ pub fn write_pubkey_file(outfile: &str, pubkey: Pubkey) -> Result<(), Box<dyn st
|
||||
|
||||
#[cfg(feature = "full")]
|
||||
pub fn read_pubkey_file(infile: &str) -> Result<Pubkey, Box<dyn std::error::Error>> {
|
||||
let f = std::fs::File::open(infile.to_string())?;
|
||||
let f = std::fs::File::open(infile)?;
|
||||
let printable: String = serde_json::from_reader(f)?;
|
||||
|
||||
use std::str::FromStr;
|
||||
|
Reference in New Issue
Block a user