Browse Source

clippy: Remove `useless_conversion` (#3899)

Jon Cinque 2 years ago
parent
commit
f830e4d6cc
1 changed files with 2 additions and 4 deletions
  1. 2 4
      program/tests/close_account.rs

+ 2 - 4
program/tests/close_account.rs

@@ -181,14 +181,12 @@ async fn fail_init_after_close_account() {
         &[&context.payer, &owner],
         context.last_blockhash,
     );
-    #[allow(clippy::useless_conversion)]
-    let error: TransactionError = context
+    let error = context
         .banks_client
         .process_transaction(tx)
         .await
         .unwrap_err()
-        .unwrap()
-        .into();
+        .unwrap();
     assert_eq!(
         error,
         TransactionError::InstructionError(2, InstructionError::InvalidAccountData)