Upgrade to rust 1.39.0 (#6939)

* Upgrade to rust 1.39.0

* 1.39.0 clippy
This commit is contained in:
Michael Vines
2019-11-14 12:27:01 -07:00
committed by GitHub
parent f108f483b7
commit e7f63cd336
13 changed files with 36 additions and 11 deletions

View File

@ -38,6 +38,8 @@ macro_rules! entrypoint {
}
/// Deserialize the input parameters
///
/// # Safety
#[allow(clippy::type_complexity)]
pub unsafe fn deserialize<'a>(input: *mut u8) -> (&'a Pubkey, Vec<AccountInfo<'a>>, &'a [u8]) {
let mut offset: usize = 0;

View File

@ -41,7 +41,7 @@ pub fn next_keyed_account<I: Iterator>(iter: &mut I) -> Result<I::Item, Instruct
iter.next().ok_or(InstructionError::NotEnoughAccountKeys)
}
pub fn limited_deserialize<T>(data: &[u8]) -> Result<(T), InstructionError>
pub fn limited_deserialize<T>(data: &[u8]) -> Result<T, InstructionError>
where
T: serde::de::DeserializeOwned,
{