Skip to content

Commit 8342ddb

Browse files
committed
Deny warnings on husky script
1 parent bcbd8b7 commit 8342ddb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.husky/pre-push

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22

3+
target=$(rustc -vV | awk '/^host/ { print $2 }' | tr '[:lower:]' '[:upper:]' | tr '-' '_')
4+
export CARGO_TARGET_${target}_RUSTFLAGS='-D warnings'
5+
36
if ! command -v cargo-make >/dev/null 2>&1; then
47
echo "cargo-make is not installed. Install it with:"
58
echo " cargo install cargo-make"

0 commit comments

Comments
 (0)