@@ -136,7 +136,7 @@ impl PythSimulator {
136136 . await
137137 . unwrap ( ) ;
138138
139- return result;
139+ result
140140 }
141141
142142
@@ -232,7 +232,7 @@ impl PythSimulator {
232232
233233 self . process_ix (
234234 instruction,
235- & vec ! [ & mapping_keypair, & product_keypair] ,
235+ & vec ! [ mapping_keypair, & product_keypair] ,
236236 & copy_keypair ( & self . genesis_keypair ) ,
237237 )
238238 . await
@@ -258,7 +258,7 @@ impl PythSimulator {
258258
259259 self . process_ix (
260260 instruction,
261- & vec ! [ & mapping_keypair, & product_keypair] ,
261+ & vec ! [ mapping_keypair, product_keypair] ,
262262 & copy_keypair ( & self . genesis_keypair ) ,
263263 )
264264 . await
@@ -290,7 +290,7 @@ impl PythSimulator {
290290
291291 self . process_ix (
292292 instruction,
293- & vec ! [ & product_keypair, & price_keypair] ,
293+ & vec ! [ product_keypair, & price_keypair] ,
294294 & copy_keypair ( & self . genesis_keypair ) ,
295295 )
296296 . await
@@ -316,7 +316,7 @@ impl PythSimulator {
316316
317317 self . process_ix (
318318 instruction,
319- & vec ! [ & product_keypair, & price_keypair] ,
319+ & vec ! [ product_keypair, price_keypair] ,
320320 & copy_keypair ( & self . genesis_keypair ) ,
321321 )
322322 . await
@@ -341,7 +341,7 @@ impl PythSimulator {
341341
342342 self . process_ix (
343343 instruction,
344- & vec ! [ & price_keypair] ,
344+ & vec ! [ price_keypair] ,
345345 & copy_keypair ( & self . genesis_keypair ) ,
346346 )
347347 . await
@@ -387,7 +387,7 @@ impl PythSimulator {
387387 pub async fn get_account_data_as < T : Pod > ( & mut self , key : Pubkey ) -> Option < T > {
388388 self . get_account ( key)
389389 . await
390- . map ( |x| load :: < T > ( & x. data ) . unwrap ( ) . clone ( ) )
390+ . map ( |x| * load :: < T > ( & x. data ) . unwrap ( ) )
391391 }
392392
393393 pub fn is_owned_by_oracle ( & self , account : & Account ) -> bool {
@@ -405,10 +405,10 @@ impl PythSimulator {
405405 pub fn get_permissions_pubkey ( & self ) -> Pubkey {
406406 let ( permissions_pubkey, __bump) =
407407 Pubkey :: find_program_address ( & [ PERMISSIONS_SEED . as_bytes ( ) ] , & self . program_id ) ;
408- return permissions_pubkey;
408+ permissions_pubkey
409409 }
410410}
411411
412412pub fn copy_keypair ( keypair : & Keypair ) -> Keypair {
413- return Keypair :: from_bytes ( & keypair. to_bytes ( ) ) . unwrap ( ) ;
413+ Keypair :: from_bytes ( & keypair. to_bytes ( ) ) . unwrap ( )
414414}
0 commit comments