diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43b1e450..da45011d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,10 +65,12 @@ jobs: - uses: ./.github/actions/cache with: cache-key: lint + - name: check format + run: | + cargo fmt --all --check - name: install clippy run: | rustup component add clippy - - name: Check clippy run: | cargo clippy --all-targets --workspace --features runtime-benchmarks --features try-runtime diff --git a/node/src/command.rs b/node/src/command.rs index b3a5a305..dce13813 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -327,7 +327,7 @@ pub fn run() -> Result<()> { AccountIdConversion::::into_account_truncating(&id); let state_version = Cli::native_runtime_version(&config.chain_spec).state_version(); - + #[allow(clippy::redundant_clone)] let block: Block = generate_genesis_block(&*config.chain_spec, state_version) .map_err(|e| e.to_string())?; diff --git a/pallets/living-assets-ownership/src/tests.rs b/pallets/living-assets-ownership/src/tests.rs index 01d9d51b..0251eb82 100644 --- a/pallets/living-assets-ownership/src/tests.rs +++ b/pallets/living-assets-ownership/src/tests.rs @@ -6,7 +6,7 @@ mod test { use super::*; type AccountId = ::AccountId; - type CollectionId = ::CollectionId; + type CollectionId = ::CollectionId; #[test] fn owner_of_unexistent_collection_is_none() { @@ -48,7 +48,7 @@ mod test { #[test] fn living_assets_ownership_trait_create_new_collection_by_living() { - new_test_ext().execute_with(|| { + new_test_ext().execute_with(|| { let result = >::create_collection(0, 1); assert_ok!(result); assert_eq!(LivingAssetsModule::owner_of_collection(0), Some(1));