Skip to content

Commit 6c45ed8

Browse files
authored
Fix pythnet-sdk ci (#1213)
* Fix CI * Does this work?
1 parent 3458dd5 commit 6c45ed8

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ repos:
8989
- id: cargo-fmt-pythnet-sdk
9090
name: Cargo format for pythnet SDK
9191
language: "rust"
92-
entry: cargo +nightly-2023-03-01 fmt --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --all -- --config-path rustfmt.toml
92+
entry: cargo +nightly-2023-07-23 fmt --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --all -- --config-path rustfmt.toml
9393
pass_filenames: false
9494
files: pythnet/pythnet_sdk
9595
- id: cargo-clippy-pythnet-sdk
9696
name: Cargo clippy for pythnet SDK
9797
language: "rust"
98-
entry: cargo +nightly-2023-03-01 clippy --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
98+
entry: cargo +nightly-2023-07-23 clippy --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
9999
pass_filenames: false
100100
files: pythnet/pythnet_sdk
101101
# Hooks for solana receiver contract

pythnet/pythnet_sdk/src/messages.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use quickcheck::Arbitrary;
33
use {
44
borsh::{
55
BorshDeserialize,
6+
BorshSchema,
67
BorshSerialize,
78
},
89
serde::{
@@ -75,7 +76,15 @@ pub type FeedId = [u8; 32];
7576

7677
#[repr(C)]
7778
#[derive(
78-
Debug, Copy, Clone, PartialEq, Serialize, Deserialize, BorshDeserialize, BorshSerialize,
79+
Debug,
80+
Copy,
81+
Clone,
82+
PartialEq,
83+
Serialize,
84+
Deserialize,
85+
BorshDeserialize,
86+
BorshSerialize,
87+
BorshSchema,
7988
)]
8089
pub struct PriceFeedMessage {
8190
pub feed_id: FeedId,

0 commit comments

Comments
 (0)