Skip to content

Commit

Permalink
Fix lint 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jgur-psyops committed Nov 1, 2024
1 parent 8c5d59b commit f711b76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn lending_pool_add_bank(

let mut bank = bank_loader.load_init()?;
check!(
!(bank_config.asset_tag == ASSET_TAG_STAKED),
bank_config.asset_tag != ASSET_TAG_STAKED,
MarginfiError::AddedStakedPoolManually
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn lending_pool_add_bank_with_seed(

let mut bank = bank_loader.load_init()?;
check!(
!(bank_config.asset_tag == ASSET_TAG_STAKED),
bank_config.asset_tag != ASSET_TAG_STAKED,
MarginfiError::AddedStakedPoolManually
);

Expand Down
8 changes: 2 additions & 6 deletions programs/marginfi/src/state/marginfi_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1165,8 +1165,9 @@ impl Display for BankOperationalState {
}

#[repr(u8)]
#[derive(Copy, Clone, Debug, AnchorSerialize, AnchorDeserialize, PartialEq, Eq)]
#[derive(Copy, Clone, Debug, AnchorSerialize, AnchorDeserialize, PartialEq, Eq, Default)]
pub enum RiskTier {
#[default]
Collateral = 0,
/// ## Isolated Risk
/// Assets in this trance can be borrowed only in isolation.
Expand All @@ -1179,11 +1180,6 @@ pub enum RiskTier {

unsafe impl Zeroable for RiskTier {}
unsafe impl Pod for RiskTier {}
impl Default for RiskTier {
fn default() -> Self {
RiskTier::Collateral
}
}

#[repr(C)]
#[cfg_attr(
Expand Down

0 comments on commit f711b76

Please sign in to comment.