File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
integration_tests/tests/fixtures Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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
3432impl From < anyhow:: Error > for TestError {
Original file line number Diff line number Diff 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);
333334impl 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 ) ]
379383pub enum StakeWithdrawSource {
380384 /// Some of an active stake account, but not all
You can’t perform that action at this time.
0 commit comments