@@ -121,7 +121,7 @@ pub fn generate(program: &Program) -> proc_macro2::TokenStream {
121121 // Bump collector.
122122 let mut __bumps = <#accounts_struct_name as anchor_lang:: Bumps >:: Bumps :: default ( ) ;
123123
124- let mut __reallocs = std:: collections:: BTreeSet :: new( ) ;
124+ let mut __reallocs = :: std:: collections:: BTreeSet :: new( ) ;
125125
126126 // Deserialize accounts.
127127 let mut __remaining_accounts = __accounts;
@@ -218,55 +218,55 @@ fn generate_legacy_idl_mod() -> proc_macro2::TokenStream {
218218 match ix {
219219 anchor_lang:: idl:: IdlInstruction :: Create { data_len } => {
220220 let mut bumps = <IdlCreateAccounts as anchor_lang:: Bumps >:: Bumps :: default ( ) ;
221- let mut reallocs = std:: collections:: BTreeSet :: new( ) ;
221+ let mut reallocs = :: std:: collections:: BTreeSet :: new( ) ;
222222 let mut accounts =
223223 IdlCreateAccounts :: try_accounts( program_id, & mut accounts, & [ ] , & mut bumps, & mut reallocs) ?;
224224 __idl_create_account( program_id, & mut accounts, data_len) ?;
225225 accounts. exit( program_id) ?;
226226 } ,
227227 anchor_lang:: idl:: IdlInstruction :: Resize { data_len } => {
228228 let mut bumps = <IdlResizeAccount as anchor_lang:: Bumps >:: Bumps :: default ( ) ;
229- let mut reallocs = std:: collections:: BTreeSet :: new( ) ;
229+ let mut reallocs = :: std:: collections:: BTreeSet :: new( ) ;
230230 let mut accounts =
231231 IdlResizeAccount :: try_accounts( program_id, & mut accounts, & [ ] , & mut bumps, & mut reallocs) ?;
232232 __idl_resize_account( program_id, & mut accounts, data_len) ?;
233233 accounts. exit( program_id) ?;
234234 } ,
235235 anchor_lang:: idl:: IdlInstruction :: Close => {
236236 let mut bumps = <IdlCloseAccount as anchor_lang:: Bumps >:: Bumps :: default ( ) ;
237- let mut reallocs = std:: collections:: BTreeSet :: new( ) ;
237+ let mut reallocs = :: std:: collections:: BTreeSet :: new( ) ;
238238 let mut accounts =
239239 IdlCloseAccount :: try_accounts( program_id, & mut accounts, & [ ] , & mut bumps, & mut reallocs) ?;
240240 __idl_close_account( program_id, & mut accounts) ?;
241241 accounts. exit( program_id) ?;
242242 } ,
243243 anchor_lang:: idl:: IdlInstruction :: CreateBuffer => {
244244 let mut bumps = <IdlCreateBuffer as anchor_lang:: Bumps >:: Bumps :: default ( ) ;
245- let mut reallocs = std:: collections:: BTreeSet :: new( ) ;
245+ let mut reallocs = :: std:: collections:: BTreeSet :: new( ) ;
246246 let mut accounts =
247247 IdlCreateBuffer :: try_accounts( program_id, & mut accounts, & [ ] , & mut bumps, & mut reallocs) ?;
248248 __idl_create_buffer( program_id, & mut accounts) ?;
249249 accounts. exit( program_id) ?;
250250 } ,
251251 anchor_lang:: idl:: IdlInstruction :: Write { data } => {
252252 let mut bumps = <IdlAccounts as anchor_lang:: Bumps >:: Bumps :: default ( ) ;
253- let mut reallocs = std:: collections:: BTreeSet :: new( ) ;
253+ let mut reallocs = :: std:: collections:: BTreeSet :: new( ) ;
254254 let mut accounts =
255255 IdlAccounts :: try_accounts( program_id, & mut accounts, & [ ] , & mut bumps, & mut reallocs) ?;
256256 __idl_write( program_id, & mut accounts, data) ?;
257257 accounts. exit( program_id) ?;
258258 } ,
259259 anchor_lang:: idl:: IdlInstruction :: SetAuthority { new_authority } => {
260260 let mut bumps = <IdlAccounts as anchor_lang:: Bumps >:: Bumps :: default ( ) ;
261- let mut reallocs = std:: collections:: BTreeSet :: new( ) ;
261+ let mut reallocs = :: std:: collections:: BTreeSet :: new( ) ;
262262 let mut accounts =
263263 IdlAccounts :: try_accounts( program_id, & mut accounts, & [ ] , & mut bumps, & mut reallocs) ?;
264264 __idl_set_authority( program_id, & mut accounts, new_authority) ?;
265265 accounts. exit( program_id) ?;
266266 } ,
267267 anchor_lang:: idl:: IdlInstruction :: SetBuffer => {
268268 let mut bumps = <IdlSetBuffer as anchor_lang:: Bumps >:: Bumps :: default ( ) ;
269- let mut reallocs = std:: collections:: BTreeSet :: new( ) ;
269+ let mut reallocs = :: std:: collections:: BTreeSet :: new( ) ;
270270 let mut accounts =
271271 IdlSetBuffer :: try_accounts( program_id, & mut accounts, & [ ] , & mut bumps, & mut reallocs) ?;
272272 __idl_set_buffer( program_id, & mut accounts) ?;
0 commit comments