Skip to content

Commit

Permalink
chore: add missing imports and fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Riateche committed Jul 19, 2024
1 parent 5d1b09d commit 216eee6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions program/rust/src/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ mod product;
#[cfg(feature = "strum")]
pub use price::MessageType;
#[cfg(test)]
pub use price::PriceCumulative;
#[cfg(test)]
pub use product::{
account_has_key_values,
create_pc_str_t,
Expand All @@ -54,13 +56,11 @@ pub use {
PriceAccount,
PriceAccountFlags,
PriceComponent,
PriceCumulative,
PriceEma,
PriceInfo,
PythOracleSerialize,
},
product::{
read_pc_str_t,
update_product_metadata,
ProductAccount,
},
Expand Down
2 changes: 2 additions & 0 deletions program/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ pub use accounts::{
MappingAccount,
PermissionAccount,
PriceAccount,
PriceAccountFlags,
PriceComponent,
PriceEma,
PriceInfo,
ProductAccount,
PythAccount,
PythOracleSerialize,
};
use {
crate::error::OracleError,
Expand Down
11 changes: 6 additions & 5 deletions program/rust/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ mod upd_permissions;
mod upd_price;
mod upd_product;

#[cfg(test)]
pub use add_publisher::{
DISABLE_ACCUMULATOR_V2,
ENABLE_ACCUMULATOR_V2,
};
pub use {
add_price::add_price,
add_product::add_product,
add_publisher::{
add_publisher,
DISABLE_ACCUMULATOR_V2,
ENABLE_ACCUMULATOR_V2,
},
add_publisher::add_publisher,
del_price::del_price,
del_product::del_product,
del_publisher::del_publisher,
Expand Down
4 changes: 1 addition & 3 deletions program/rust/src/tests/test_upd_price_with_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ use {
update_clock_slot,
AccountSetup,
},
validator::{
self,
},
validator,
},
solana_program::{
program_error::ProgramError,
Expand Down

0 comments on commit 216eee6

Please sign in to comment.