Resolve new clippy complaints

This commit is contained in:
Michael Vines
2022-04-10 21:16:55 -07:00
parent 552d684bdc
commit a2be810dbc
3 changed files with 8 additions and 6 deletions

View File

@ -137,10 +137,10 @@ macro_rules! impl_sysvar_get {
$syscall_name(var_addr)
};
#[cfg(not(target_arch = "bpf"))]
let result = crate::program_stubs::$syscall_name(var_addr);
let result = $crate::program_stubs::$syscall_name(var_addr);
match result {
crate::entrypoint::SUCCESS => Ok(var),
$crate::entrypoint::SUCCESS => Ok(var),
e => Err(e.into()),
}
}