Skip to content

Commit

Permalink
fixup: auto format Rust code
Browse files Browse the repository at this point in the history
  • Loading branch information
oak-code-formatter committed Oct 25, 2023
1 parent 46491a6 commit 29bb3bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion node/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ where
C::Api: BlockBuilder<Block>,
P: TransactionPool + Sync + Send + 'static,
{
use pallet_automation_time_rpc::{AutomationTime, AutomationTimeApiServer};
use pallet_automation_price_rpc::{AutomationPrice, AutomationPriceApiServer};
use pallet_automation_time_rpc::{AutomationTime, AutomationTimeApiServer};
use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApiServer};
use pallet_xcmp_handler_rpc::{XcmpHandler, XcmpHandlerApiServer};
use substrate_frame_rpc_system::{System, SystemApiServer};
Expand Down
8 changes: 4 additions & 4 deletions runtime/neumann/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));

use codec::{Decode, Encode, MaxEncodedLen};
use pallet_automation_price_rpc_runtime_api::FeeDetails as AutomationPriceFeeDetails;
use pallet_automation_time_rpc_runtime_api::{
AutomationAction, AutostakingResult, FeeDetails as AutomationFeeDetails,
};
use pallet_automation_price_rpc_runtime_api::FeeDetails as AutomationPriceFeeDetails;
use primitives::{assets::CustomMetadata, TokenId};
use sp_api::impl_runtime_apis;
use sp_core::{crypto::KeyTypeId, OpaqueMetadata};
Expand Down Expand Up @@ -944,7 +944,7 @@ impl Contains<RuntimeCall> for ClosedCallFilter {
RuntimeCall::Bounties(_) => false,
RuntimeCall::ParachainStaking(_) => false,
RuntimeCall::Treasury(_) => false,
RuntimeCall::AutomationPrice(_) => false,
RuntimeCall::AutomationPrice(_) => false,
_ => true,
}
}
Expand Down Expand Up @@ -1285,7 +1285,7 @@ impl_runtime_apis! {
use frame_benchmarking::{list_benchmark, Benchmarking, BenchmarkList};
use frame_support::traits::StorageInfoTrait;
use pallet_automation_time::Pallet as AutomationTime;
use pallet_automation_price::Pallet as AutomationPrice;
use pallet_automation_price::Pallet as AutomationPrice;
use pallet_valve::Pallet as Valve;
use pallet_vesting::Pallet as Vesting;
use pallet_parachain_staking::Pallet as ParachainStaking;
Expand Down Expand Up @@ -1333,7 +1333,7 @@ impl_runtime_apis! {
let params = (&config, &whitelist);

add_benchmark!(params, batches, pallet_automation_time, AutomationTime::<Runtime>);
add_benchmark!(params, batches, pallet_automation_price, AutomationPrice::<Runtime>);
add_benchmark!(params, batches, pallet_automation_price, AutomationPrice::<Runtime>);

add_benchmark!(params, batches, pallet_valve, Valve::<Runtime>);
add_benchmark!(params, batches, pallet_vesting, Vesting::<Runtime>);
Expand Down

0 comments on commit 29bb3bb

Please sign in to comment.