mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-22 21:59:59 +00:00
Fix macos clippy issues
This commit is contained in:
committed by
Kirill Bulatov
parent
d060a97c54
commit
fec050ce97
@@ -9,7 +9,14 @@
|
||||
# In vscode, this setting is Rust-analyzer>Check On Save:Command
|
||||
|
||||
|
||||
# * `-A unknown_lints` – do not warn about unknown lint suppressions
|
||||
# that people with newer toolchains might use
|
||||
# * `-D warnings` - fail on any warnings (`cargo` returns non-zero exit status)
|
||||
cargo clippy --all --all-targets --all-features -- -A unknown_lints -D warnings
|
||||
# Not every feature is supported in macOS builds, e.g. `profiling`,
|
||||
# avoid running regular linting script that checks every feature.
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
# no extra features to test currently, add more here when needed
|
||||
cargo clippy --all --all-targets -- -A unknown_lints -D warnings
|
||||
else
|
||||
# * `-A unknown_lints` – do not warn about unknown lint suppressions
|
||||
# that people with newer toolchains might use
|
||||
# * `-D warnings` - fail on any warnings (`cargo` returns non-zero exit status)
|
||||
cargo clippy --all --all-targets --all-features -- -A unknown_lints -D warnings
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user