Skip to content

Commit e6bf79c

Browse files
Reisenguibescos
authored andcommitted
chore: apply clippy to tests
1 parent 93be136 commit e6bf79c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

program/rust/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Allow non upper case globals from C
33
#![allow(non_upper_case_globals)]
44
#![allow(incomplete_features)]
5+
#![allow(clippy::bool_assert_comparison)]
56
#![feature(adt_const_params)]
67

78
mod c_oracle_header;

program/rust/src/tests/test_sma_epoch_transition.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ fn test_sma_epoch_transition() {
284284
)
285285
.is_ok());
286286

287+
#[allow(clippy::identity_op)]
287288
{
288289
let price_data = load_checked::<PriceAccountWrapper>(&price_account, PC_VERSION).unwrap();
289290
// Aggregation was successful, check that all skipped buckets got updated
@@ -352,6 +353,7 @@ fn test_sma_epoch_transition() {
352353
)
353354
.is_ok());
354355

356+
#[allow(clippy::identity_op)]
355357
{
356358
let price_data = load_checked::<PriceAccountWrapper>(&price_account, PC_VERSION).unwrap();
357359
// Nothing got updated, since slot gap was too big, so aggregation was not successful

0 commit comments

Comments
 (0)