Skip to content

Commit 216eee6

Browse files
committed
chore: add missing imports and fix warnings
1 parent 5d1b09d commit 216eee6

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

program/rust/src/accounts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ mod product;
4343
#[cfg(feature = "strum")]
4444
pub use price::MessageType;
4545
#[cfg(test)]
46+
pub use price::PriceCumulative;
47+
#[cfg(test)]
4648
pub use product::{
4749
account_has_key_values,
4850
create_pc_str_t,
@@ -54,13 +56,11 @@ pub use {
5456
PriceAccount,
5557
PriceAccountFlags,
5658
PriceComponent,
57-
PriceCumulative,
5859
PriceEma,
5960
PriceInfo,
6061
PythOracleSerialize,
6162
},
6263
product::{
63-
read_pc_str_t,
6464
update_product_metadata,
6565
ProductAccount,
6666
},

program/rust/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ pub use accounts::{
3737
MappingAccount,
3838
PermissionAccount,
3939
PriceAccount,
40+
PriceAccountFlags,
4041
PriceComponent,
4142
PriceEma,
4243
PriceInfo,
4344
ProductAccount,
4445
PythAccount,
46+
PythOracleSerialize,
4547
};
4648
use {
4749
crate::error::OracleError,

program/rust/src/processor.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ mod upd_permissions;
2727
mod upd_price;
2828
mod upd_product;
2929

30+
#[cfg(test)]
31+
pub use add_publisher::{
32+
DISABLE_ACCUMULATOR_V2,
33+
ENABLE_ACCUMULATOR_V2,
34+
};
3035
pub use {
3136
add_price::add_price,
3237
add_product::add_product,
33-
add_publisher::{
34-
add_publisher,
35-
DISABLE_ACCUMULATOR_V2,
36-
ENABLE_ACCUMULATOR_V2,
37-
},
38+
add_publisher::add_publisher,
3839
del_price::del_price,
3940
del_product::del_product,
4041
del_publisher::del_publisher,

program/rust/src/tests/test_upd_price_with_validator.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ use {
2424
update_clock_slot,
2525
AccountSetup,
2626
},
27-
validator::{
28-
self,
29-
},
27+
validator,
3028
},
3129
solana_program::{
3230
program_error::ProgramError,

0 commit comments

Comments
 (0)