This repository was archived by the owner on Jan 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -527,10 +527,7 @@ pub mod test_mocks {
527527 assert ! ( !points. is_empty( ) ) ;
528528
529529 let new_points = points. len ( ) ;
530- self . points_written
531- . lock ( )
532- . unwrap ( )
533- . extend ( points) ;
530+ self . points_written . lock ( ) . unwrap ( ) . extend ( points) ;
534531
535532 info ! (
536533 "Writing {} points ({} total)" ,
Original file line number Diff line number Diff line change 11//! config for staking
22//! carries variables that the stake program cares about
3+ #[ allow( deprecated) ]
4+ use solana_sdk:: stake:: config;
35#[ deprecated(
46 since = "1.8.0" ,
57 note = "Please use `solana_sdk::stake::config` or `solana_program::stake::config` instead"
68) ]
79pub use solana_sdk:: stake:: config:: * ;
8- #[ allow( deprecated) ]
9- use solana_sdk:: stake:: config;
1010use {
1111 bincode:: deserialize,
1212 solana_config_program:: { create_config_account, get_config_data} ,
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ macro_rules! impl_var_int {
7474 let mut shift = 0u32 ;
7575 while shift < <$type>:: BITS {
7676 let Some ( byte) = seq. next_element:: <u8 >( ) ? else {
77- return Err ( A :: Error :: custom( "Invalid Sequence" ) ) ;
78- } ;
77+ return Err ( A :: Error :: custom( "Invalid Sequence" ) ) ;
78+ } ;
7979 out |= ( ( byte & 0x7F ) as Self ) << shift;
8080 if byte & 0x80 == 0 {
8181 // Last byte should not have been truncated when it was
You can’t perform that action at this time.
0 commit comments