From 19354994877564ec3d8b8034bb4446a78b729cbb Mon Sep 17 00:00:00 2001 From: Egor Ulesykiy Date: Thu, 17 Nov 2022 19:17:53 +0200 Subject: [PATCH] Apply cargo fmt --- core/primitives/src/views.rs | 8 ++++---- runtime/runtime/src/actions.rs | 7 +++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/core/primitives/src/views.rs b/core/primitives/src/views.rs index f7e1401b8e0..9ff725a399a 100644 --- a/core/primitives/src/views.rs +++ b/core/primitives/src/views.rs @@ -36,10 +36,10 @@ use crate::sharding::{ ShardChunkHeaderV3, }; use crate::transaction::{ - Action, AddKeyAction, CreateAccountAction, DelegateAction, DeleteAccountAction, DeleteKeyAction, - DeployContractAction, ExecutionMetadata, ExecutionOutcome, ExecutionOutcomeWithIdAndProof, - ExecutionStatus, FunctionCallAction, PartialExecutionOutcome, PartialExecutionStatus, - SignedDelegateAction,SignedTransaction, StakeAction, TransferAction, + Action, AddKeyAction, CreateAccountAction, DelegateAction, DeleteAccountAction, + DeleteKeyAction, DeployContractAction, ExecutionMetadata, ExecutionOutcome, + ExecutionOutcomeWithIdAndProof, ExecutionStatus, FunctionCallAction, PartialExecutionOutcome, + PartialExecutionStatus, SignedDelegateAction, SignedTransaction, StakeAction, TransferAction, }; use crate::types::{ AccountId, AccountWithPublicKey, Balance, BlockHeight, CompiledContractCache, EpochHeight, diff --git a/runtime/runtime/src/actions.rs b/runtime/runtime/src/actions.rs index 766c5a75a78..e4debbf1d32 100644 --- a/runtime/runtime/src/actions.rs +++ b/runtime/runtime/src/actions.rs @@ -1,4 +1,7 @@ -use crate::config::{safe_add_gas, RuntimeConfig, total_prepaid_exec_fees, total_prepaid_gas, total_prepaid_send_fees}; +use crate::config::{ + safe_add_gas, total_prepaid_exec_fees, total_prepaid_gas, total_prepaid_send_fees, + RuntimeConfig, +}; use crate::ext::{ExternalError, RuntimeExt}; use crate::{metrics, ActionResult, ApplyState}; use borsh::{BorshDeserialize, BorshSerialize}; @@ -7,7 +10,7 @@ use near_primitives::account::{AccessKey, AccessKeyPermission, Account}; use near_primitives::checked_feature; use near_primitives::config::ViewConfig; use near_primitives::contract::ContractCode; -use near_primitives::errors::{ActionError, ActionErrorKind, RuntimeError, InvalidAccessKeyError}; +use near_primitives::errors::{ActionError, ActionErrorKind, InvalidAccessKeyError, RuntimeError}; use near_primitives::hash::CryptoHash; use near_primitives::receipt::{ActionReceipt, Receipt, ReceiptEnum}; use near_primitives::runtime::config::AccountCreationConfig;