Skip to content

Commit 0783aa5

Browse files
guibescosRiateche
andauthored
Update program/rust/src/accounts/price.rs
Co-authored-by: Pavel Strakhov <ri@idzaaus.org>
1 parent b2320d9 commit 0783aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

program/rust/src/accounts/price.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ impl PythOracleSerialize for PublisherStakeCapsMessage {
348348
let mut result = vec![DISCRIMINATOR];
349349
result.extend_from_slice(&self.publish_time.to_be_bytes());
350350
result.extend_from_slice(
351-
&TryInto::<u16>::try_into(self.caps.as_ref().len())
351+
&u16::try_from(self.caps.as_ref().len())
352352
.unwrap()
353353
.to_be_bytes(),
354354
);

0 commit comments

Comments
 (0)