mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
Run cargo fmt on the whole code base (#9394)
* Run cargo fmt on the whole code base * Second run * Add CI check * Fix compilation * More unnecessary braces * Handle weights * Use --all * Use correct attributes... * Fix UI tests * AHHHHHHHHH * 🤦 * Docs * Fix compilation * 🤷 * Please stop * 🤦 x 2 * More * make rustfmt.toml consistent with polkadot Co-authored-by: André Silva <andrerfosilva@gmail.com>
This commit is contained in:
@@ -16,8 +16,10 @@
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::{
|
||||
assert_ok, assert_noop, transactional, StorageMap, StorageValue,
|
||||
dispatch::{DispatchError, DispatchResult}, storage::{with_transaction, TransactionOutcome::*},
|
||||
assert_noop, assert_ok,
|
||||
dispatch::{DispatchError, DispatchResult},
|
||||
storage::{with_transaction, TransactionOutcome::*},
|
||||
transactional, StorageMap, StorageValue,
|
||||
};
|
||||
use sp_io::TestExternalities;
|
||||
use sp_std::result;
|
||||
@@ -41,7 +43,7 @@ frame_support::decl_module! {
|
||||
}
|
||||
}
|
||||
|
||||
frame_support::decl_storage!{
|
||||
frame_support::decl_storage! {
|
||||
trait Store for Module<T: Config> as StorageTransactions {
|
||||
pub Value: u32;
|
||||
pub Map: map hasher(twox_64_concat) String => u32;
|
||||
@@ -62,7 +64,6 @@ impl Config for Runtime {}
|
||||
#[test]
|
||||
fn storage_transaction_basic_commit() {
|
||||
TestExternalities::default().execute_with(|| {
|
||||
|
||||
assert_eq!(Value::get(), 0);
|
||||
assert!(!Map::contains_key("val0"));
|
||||
|
||||
@@ -82,7 +83,6 @@ fn storage_transaction_basic_commit() {
|
||||
#[test]
|
||||
fn storage_transaction_basic_rollback() {
|
||||
TestExternalities::default().execute_with(|| {
|
||||
|
||||
assert_eq!(Value::get(), 0);
|
||||
assert_eq!(Map::get("val0"), 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user