Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion solvers/rust/mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,22 @@ depends = [
]

[tasks."check:rustfmt"]
run = "cargo fmt --check"
run = """
cargo fmt --check
Comment thread
nikobockerman marked this conversation as resolved.

#set -x
warnings=$(
cargo fmt --check 2>&1 \
| grep "Warning:" \
| grep hex_literal_case \
| grep "unstable features" \
| wc -l \
| tr -d '[:space:]')
if [ "$warnings" -gt 0 ]; then
echo "Found $warnings warnings" >&2
exit 1
fi
"""

[tasks.fix]
depends = [
Expand Down
1 change: 1 addition & 0 deletions solvers/rust/rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hex_literal_case = "Upper"
Loading