mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* Enable clippy in CI * Fix clippy warnings * Only run fmt and clippy on stable * Fix check script
12 lines
230 B
Bash
Executable File
12 lines
230 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
echo "$(rustup default)" | grep -q "stable"
|
|
if [ "$?" != "0" ]; then
|
|
# only run checks on stable rust for stability
|
|
exit 0
|
|
fi
|
|
|
|
set -euxo pipefail
|
|
cargo fmt --all -- --check
|
|
cargo clippy -- --deny=warnings
|