We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2320d9 commit 0783aa5Copy full SHA for 0783aa5
program/rust/src/accounts/price.rs
@@ -348,7 +348,7 @@ impl PythOracleSerialize for PublisherStakeCapsMessage {
348
let mut result = vec![DISCRIMINATOR];
349
result.extend_from_slice(&self.publish_time.to_be_bytes());
350
result.extend_from_slice(
351
- &TryInto::<u16>::try_into(self.caps.as_ref().len())
+ &u16::try_from(self.caps.as_ref().len())
352
.unwrap()
353
.to_be_bytes(),
354
);
0 commit comments