mirror of
https://github.com/chronotope/chrono.git
synced 2025-09-30 06:21:56 +00:00

It is needed as the non_exhaustive attribute is not available on 1.13.0. This should fix the broken linting.
17 lines
445 B
Bash
Executable File
17 lines
445 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
# shellcheck source=ci/_shlib.sh
|
|
source "${BASH_SOURCE[0]%/*}/_shlib.sh"
|
|
|
|
main() {
|
|
# rustflags are present because of: https://github.com/rust-lang/rust-clippy/issues/5749
|
|
runt env RUSTFLAGS="-Dwarnings" cargo clippy --color=always -- -D warnings -A clippy::manual-non-exhaustive
|
|
runt cargo fmt -- --check --color=always
|
|
runt make readme
|
|
runv git diff --exit-code -- README.md
|
|
}
|
|
|
|
main
|