Skip to content

Commit

Permalink
program: cargo fmt --
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Jul 17, 2024
1 parent bea23d5 commit 7454ad1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions programs/drift/src/controller/insurance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ use crate::error::ErrorCode;
use crate::math::amm::calculate_net_user_pnl;
use crate::math::casting::Cast;
use crate::math::constants::{
MAX_APR_PER_REVENUE_SETTLE_TO_INSURANCE_FUND_VAULT, ONE_YEAR,
PERCENTAGE_PRECISION,
MAX_APR_PER_REVENUE_SETTLE_TO_INSURANCE_FUND_VAULT, ONE_YEAR, PERCENTAGE_PRECISION,
SHARE_OF_REVENUE_ALLOCATED_TO_INSURANCE_FUND_VAULT_DENOMINATOR,
SHARE_OF_REVENUE_ALLOCATED_TO_INSURANCE_FUND_VAULT_NUMERATOR,
};
Expand Down
13 changes: 4 additions & 9 deletions programs/drift/src/math/fuel/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ mod calculate_perp_fuel_bonus {
use crate::math::fuel::calculate_perp_fuel_bonus;
use crate::state::perp_market::PerpMarket;
use crate::{FUEL_WINDOW_U128, QUOTE_PRECISION_I128};


#[test]
fn test() {
Expand All @@ -16,11 +15,10 @@ mod calculate_perp_fuel_bonus {
}

mod calculate_spot_fuel_bonus {
use crate::math::fuel::{calculate_spot_fuel_bonus};
use crate::math::fuel::calculate_spot_fuel_bonus;

use crate::state::spot_market::SpotMarket;
use crate::{FUEL_WINDOW_U128, QUOTE_PRECISION_I128};


#[test]
fn test() {
Expand All @@ -41,13 +39,10 @@ mod calculate_spot_fuel_bonus {
}

mod calculate_insurance_fuel_bonus {
use crate::math::fuel::{
calculate_insurance_fuel_bonus,
};

use crate::math::fuel::calculate_insurance_fuel_bonus;

use crate::state::spot_market::SpotMarket;
use crate::{FUEL_WINDOW_U128, QUOTE_PRECISION_U64};


#[test]
fn test() {
Expand Down
2 changes: 1 addition & 1 deletion programs/drift/src/state/user/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ mod get_user_stats_age_ts {
}

mod fuel {
use crate::state::user::{UserStats};
use crate::state::user::UserStats;
use crate::QUOTE_PRECISION_U64;

#[test]
Expand Down

0 comments on commit 7454ad1

Please sign in to comment.