Skip to content

Commit a20232f

Browse files
committed
integration test warnings
1 parent e4f53d5 commit a20232f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

integration_tests/tests/fixtures/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ pub enum TestError {
2727
MerkleRootGeneratorError(#[from] MerkleRootGeneratorError),
2828
#[error(transparent)]
2929
IoError(#[from] std::io::Error),
30-
#[error("Failed to deserialize account data: {0}")]
31-
AnchorError(String),
3230
}
3331

3432
impl From<anyhow::Error> for TestError {

integration_tests/tests/fixtures/spl_stake_pool.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ pub enum AccountType {
152152
#[default]
153153
Uninitialized,
154154
/// Stake pool
155+
#[allow(dead_code)]
155156
StakePool,
156157
/// Validator stake list
157158
ValidatorList,
@@ -333,6 +334,7 @@ pub struct PodStakeStatus(u8);
333334
impl PodStakeStatus {
334335
/// Downgrade the status towards ready for removal by removing the validator
335336
/// stake
337+
#[allow(dead_code)]
336338
pub fn remove_validator_stake(&mut self) -> Result<(), ProgramError> {
337339
let status = StakeStatus::try_from(*self)?;
338340
let new_self = match status {
@@ -347,6 +349,7 @@ impl PodStakeStatus {
347349
}
348350
/// Downgrade the status towards ready for removal by removing the transient
349351
/// stake
352+
#[allow(dead_code)]
350353
pub fn remove_transient_stake(&mut self) -> Result<(), ProgramError> {
351354
let status = StakeStatus::try_from(*self)?;
352355
let new_self = match status {
@@ -375,6 +378,7 @@ impl From<StakeStatus> for PodStakeStatus {
375378
}
376379

377380
/// Withdrawal type, figured out during `process_withdraw_stake`
381+
#[allow(dead_code)]
378382
#[derive(Debug, PartialEq, Eq)]
379383
pub enum StakeWithdrawSource {
380384
/// Some of an active stake account, but not all

0 commit comments

Comments
 (0)