Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9065d7b

Browse files
committedJul 19, 2024·
chore: add missing imports and fix warnings
1 parent 5d1b09d commit 9065d7b

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed
 

‎program/rust/src/accounts.rs

-2
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,11 @@ pub use {
5454
PriceAccount,
5555
PriceAccountFlags,
5656
PriceComponent,
57-
PriceCumulative,
5857
PriceEma,
5958
PriceInfo,
6059
PythOracleSerialize,
6160
},
6261
product::{
63-
read_pc_str_t,
6462
update_product_metadata,
6563
ProductAccount,
6664
},

‎program/rust/src/lib.rs

+2
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

+6-5
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

+1-3
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)
Please sign in to comment.