File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
vendor/solana/rpc-client-api/src Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 17
17
18
18
use crate :: { error:: Error , SolanaRuntimeCall } ;
19
19
use frame_support:: traits:: Get ;
20
- use nostd:: marker:: PhantomData ;
20
+ use nostd:: { marker:: PhantomData , prelude :: * } ;
21
21
use pallet_solana:: Pubkey ;
22
22
use solana_inline_spl:: token:: GenericTokenAccount ;
23
23
use solana_rpc_client_api:: filter:: RpcFilterType ;
@@ -101,7 +101,7 @@ impl<T> ProgramAccounts<T> {
101
101
}
102
102
103
103
fn calc_scan_result_size ( account : & Account ) -> usize {
104
- account. data ( ) . len ( ) + std :: mem:: size_of :: < Account > ( ) + std :: mem:: size_of :: < Pubkey > ( )
104
+ account. data ( ) . len ( ) + core :: mem:: size_of :: < Account > ( ) + core :: mem:: size_of :: < Pubkey > ( )
105
105
}
106
106
}
107
107
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub mod fee;
24
24
pub mod transaction;
25
25
26
26
use error:: Error ;
27
- use nostd:: { string :: String , vec :: Vec } ;
27
+ use nostd:: prelude :: * ;
28
28
use sp_api:: decl_runtime_apis;
29
29
30
30
decl_runtime_apis ! {
Original file line number Diff line number Diff line change 16
16
// limitations under the License.
17
17
18
18
use crate :: { error:: Error , SolanaRuntimeCall } ;
19
- use nostd:: marker:: PhantomData ;
19
+ use nostd:: { marker:: PhantomData , prelude :: * } ;
20
20
use pallet_solana:: { runtime:: bank:: TransactionSimulationResult , Pubkey } ;
21
21
use solana_sdk:: {
22
22
feature_set:: FeatureSet ,
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ pub mod pallet {
108
108
} ,
109
109
} ;
110
110
use frame_system:: { pallet_prelude:: * , CheckWeight } ;
111
- use nostd:: sync:: Arc ;
111
+ use nostd:: { prelude :: * , sync:: Arc } ;
112
112
use np_runtime:: traits:: LossyInto ;
113
113
use parity_scale_codec:: Codec ;
114
114
use solana_sdk:: {
Original file line number Diff line number Diff line change 1
1
use {
2
2
base64:: { prelude:: BASE64_STANDARD , Engine } ,
3
- nostd:: borrow:: Cow ,
3
+ nostd:: { borrow:: Cow , prelude :: * } ,
4
4
serde:: { Deserialize , Serialize } ,
5
5
solana_inline_spl:: { token:: GenericTokenAccount , token_2022:: Account } ,
6
6
solana_sdk:: account:: { AccountSharedData , ReadableAccount } ,
You can’t perform that action at this time.
0 commit comments