Skip to content

Commit

Permalink
chore(ci): switch to cargo-license-template (#286)
Browse files Browse the repository at this point in the history
* chore(ci): switch to `cargo-license-template`

* Fmt

* Fix args
  • Loading branch information
grtlr committed Jun 15, 2022
1 parent b91c1af commit dbc3c37
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 16 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/_fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,13 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: ci-fmt

- uses: actions-rs/cargo@v1
with:
command: install
args: --force cargo-license-template

- uses: actions-rs/cargo@v1
with:
command: license-template
args: --template .license_template
1 change: 0 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ edition = "2021"
format_code_in_doc_comments = true
group_imports = "StdExternalCrate"
imports_granularity = "Crate"
license_template_path = ".license_template"
max_width = 120
normalize_comments = true
normalize_doc_attributes = true
Expand Down
32 changes: 17 additions & 15 deletions src/types/stardust/block/payload/milestone/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,23 +283,25 @@ pub(crate) mod test {
bee_test::rand::milestone::rand_merkle_root(),
bee_test::rand::milestone::rand_merkle_root(),
"Foo".as_bytes().to_vec(),
bee::MilestoneOptions::new(vec![bee::option::MilestoneOption::Receipt(
bee::option::ReceiptMilestoneOption::new(
1.into(),
false,
vec![
get_test_ed25519_migrated_funds_entry().try_into().unwrap(),
get_test_alias_migrated_funds_entry().try_into().unwrap(),
get_test_nft_migrated_funds_entry().try_into().unwrap(),
],
TreasuryTransactionPayload::new(
bee_test::rand::input::rand_treasury_input(),
bee_test::rand::output::rand_treasury_output(),
bee::MilestoneOptions::new(vec![
bee::option::MilestoneOption::Receipt(
bee::option::ReceiptMilestoneOption::new(
1.into(),
false,
vec![
get_test_ed25519_migrated_funds_entry().try_into().unwrap(),
get_test_alias_migrated_funds_entry().try_into().unwrap(),
get_test_nft_migrated_funds_entry().try_into().unwrap(),
],
TreasuryTransactionPayload::new(
bee_test::rand::input::rand_treasury_input(),
bee_test::rand::output::rand_treasury_output(),
)
.unwrap(),
)
.unwrap(),
)
.unwrap(),
)])
),
])
.unwrap(),
)
.unwrap(),
Expand Down

0 comments on commit dbc3c37

Please sign in to comment.