Skip to content

Commit

Permalink
fix: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed Jun 28, 2024
1 parent 70be11e commit 7ad05f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tools/format-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ ROOT_DIR=$(git rev-parse --show-toplevel)

cd "$ROOT_DIR"

print_info "Run Rust format."

fmt_args=()
if ci_is_running; then
fmt_args+=("--check")
Expand All @@ -18,4 +16,7 @@ fi
cargo --version
cargo fmt --version

print_info "Run Rust format."
cargo fmt "${fmt_args[@]}" "$@"

print_info "Done."
7 changes: 6 additions & 1 deletion tools/lint-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ print_info "Run Rust Clippy linter."
print_warning "Currently warnings are not errors!"

cargo clippy --no-deps -- -A clippy::needless_return "$@" ||
die "Rust clippy failed."
{
die "Rust clippy failed."
git diff --name-status || true
}

print_info "Done."

0 comments on commit 7ad05f4

Please sign in to comment.