Skip to content

Commit

Permalink
use nightly fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Jul 4, 2023
1 parent 2d95dca commit 600b600
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ REPO_ROOT_DIR="$(git rev-parse --show-toplevel)"

files=$((git diff --cached --name-only --diff-filter=ACMR | grep -Ei "\.rs$") || true)
if [ ! -z "${files}" ]; then
cargo fmt --all
cargo +nightly fmt --all
git add $(echo "$files" | paste -s -d " " -)
fi
5 changes: 3 additions & 2 deletions modules/transaction-payment/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,9 @@ fn charges_fee_when_validate_with_fee_currency_call_use_pool() {
50
));
assert_eq!(sub_dot_aca - fee_amount, Currencies::free_balance(ACA, &dot_acc));
assert_eq!(sub_dot_dot + fee_amount / 10, Currencies::free_balance(DOT, &dot_acc)); // 1 DOT = 10
// ACA
assert_eq!(sub_dot_dot + fee_amount / 10, Currencies::free_balance(DOT, &dot_acc));
// 1 DOT = 10
// ACA
});
}

Expand Down

0 comments on commit 600b600

Please sign in to comment.