Skip to content

Commit

Permalink
chore: create_releease cargo_fmt_check()
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackwills committed May 16, 2023
1 parent b65e94c commit 0b6613c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,6 @@ check_typos () {
ask_continue
}


cargo_fmt_check() {
cd "src-tauri" || error_close "Can't find src-tauri"
echo -e "\n${GREEN}cargo fmt${RESET}"
cargo fmt
echo -e "\n${GREEN}cargo check${RESET}"
cargo check
cd "${CWD}" || error_close "Can't find ${CWD}"
}
# Full flow to create a new release
release_flow() {

Expand Down Expand Up @@ -238,7 +229,11 @@ release_flow() {
update_version_number_in_files
update_json

cargo_fmt_check
echo "cargo fmt"
cargo fmt

echo -e "\n${PURPLE}cargo check${RESET}"
cargo check

release_continue "git add ."
git add .
Expand Down

0 comments on commit 0b6613c

Please sign in to comment.