git.delta.rocks / unique-network / refs/commits / 34387ce618ee

difftreelog

style fix fmt warnings

Yaroslav Bolyukin2021-09-08parent: #97991ee.patch.diff
in: master

3 files changed

modifiedcrates/evm-coder/tests/a.rsdiffbeforeafterboth
after · crates/evm-coder/tests/a.rs
1#![allow(dead_code)] // This test only checks that macros is not panicking23use evm_coder::{solidity_interface, types::*, ToLog, execution::Result};4use evm_coder_macros::solidity;56struct Impls;78#[solidity_interface(name = "OurInterface")]9impl Impls {10	fn fn_a(&self, _input: uint256) -> Result<bool> {11		todo!()12	}13}1415#[solidity_interface(name = "OurInterface1")]16impl Impls {17	fn fn_b(&self, _input: uint128) -> Result<uint32> {18		todo!()19	}20}2122#[solidity_interface(23	name = "OurInterface2",24	is(OurInterface),25	inline_is(OurInterface1),26	events(ERC721Log)27)]28impl Impls {29	#[solidity(rename_selector = "fnK")]30	fn fn_c(&self, _input: uint32) -> Result<uint8> {31		todo!()32	}33	fn fn_d(&self, _value: uint32) -> Result<uint32> {34		todo!()35	}3637	fn caller_sensitive(&self, _caller: caller) -> Result<uint8> {38		todo!()39	}40	fn payable(&mut self, _value: value) -> Result<uint8> {41		todo!()42	}43}4445#[derive(ToLog)]46enum ERC721Log {47	Transfer {48		#[indexed]49		from: address,50		#[indexed]51		to: address,52		value: uint256,53	},54	Eee {55		#[indexed]56		aaa: address,57		bbb: uint256,58	},59}6061struct ERC20;6263#[solidity_interface(name = "ERC20")]64impl ERC20 {65	fn decimals(&self) -> Result<uint8> {66		todo!()67	}68	fn balance_of(&self, _owner: address) -> Result<uint256> {69		todo!()70	}71	fn transfer(&mut self, _caller: caller, _to: address, _value: uint256) -> Result<bool> {72		todo!()73	}74	fn transfer_from(75		&mut self,76		_caller: caller,77		_from: address,78		_to: address,79		_value: uint256,80	) -> Result<bool> {81		todo!()82	}83	fn approve(&mut self, _caller: caller, _spender: address, _value: uint256) -> Result<bool> {84		todo!()85	}86	fn allowance(&self, _owner: address, _spender: address) -> Result<uint256> {87		todo!()88	}89}
modifiedpallets/scheduler/src/lib.rsdiffbeforeafterboth
--- a/pallets/scheduler/src/lib.rs
+++ b/pallets/scheduler/src/lib.rs
@@ -794,8 +794,8 @@
 	use super::*;
 
 	use frame_support::{
-		parameter_types, assert_ok, ord_parameter_types, assert_noop, assert_err, Hashable,
-		traits::{OnInitialize, OnFinalize, Filter},
+		Hashable, assert_err, assert_noop, assert_ok, ord_parameter_types, parameter_types,
+		traits::{Contains, Filter, OnFinalize, OnInitialize},
 		weights::constants::RocksDbWeight,
 	};
 	use sp_core::H256;
modifiedruntime/src/lib.rsdiffbeforeafterboth
--- a/runtime/src/lib.rs
+++ b/runtime/src/lib.rs
@@ -54,7 +54,6 @@
 		WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients,
 	},
 };
-use xcm_executor::traits::InvertLocation;
 use nft_data_structs::*;
 // use pallet_contracts::weights::WeightInfo;
 // #[cfg(any(feature = "std", test))]
@@ -80,8 +79,7 @@
 // Polkadot imports
 use pallet_xcm::XcmPassthrough;
 use polkadot_parachain::primitives::Sibling;
-use xcm::v0::Xcm;
-use xcm::v0::{BodyId, Junction::*, MultiAsset, MultiLocation, MultiLocation::*, NetworkId};
+use xcm::v0::{BodyId, Junction::*, MultiLocation, MultiLocation::*, NetworkId};
 use xcm_builder::{
 	AccountId32Aliases, AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, CurrencyAdapter,
 	EnsureXcmOrigin, FixedWeightBounds, IsConcrete, LocationInverter, NativeAsset,