Cleanup usage of feature "program" (#7712)
This commit is contained in:
@@ -117,10 +117,7 @@ pub fn limited_deserialize<T>(data: &[u8]) -> Result<T, InstructionError>
|
||||
where
|
||||
T: serde::de::DeserializeOwned,
|
||||
{
|
||||
#[cfg(not(feature = "program"))]
|
||||
let limit = crate::packet::PACKET_DATA_SIZE as u64;
|
||||
#[cfg(feature = "program")]
|
||||
let limit = 1024;
|
||||
bincode::config()
|
||||
.limit(limit)
|
||||
.deserialize(data)
|
||||
|
Reference in New Issue
Block a user