fix: clippy-clean — rename to_bytes→write_to, fix Justfile clippy args

This commit is contained in:
swaits committed 2026-03-29 20:42:59 -06:00
1 parent fd360e0cfe
commit 7dc79c1a24
3 files changed
+11 -10

No files matched your search

+3 -3
View File
@@ -42,7 +42,7 @@ check board:
# Run clippy on a single board
clippy board:
@just _cargo {{board}} "clippy -- -D warnings"
@just _cargo {{board}} "clippy" "-- -D warnings"
# Build release firmware and copy to firmware/ with a readable name
build board profile="release":
@@ -68,7 +68,7 @@ size board:
# Run a cargo command for a board.
# Xtensa: nightly cargo + esp rustc (via RUSTC override) + -Zbuild-std=core
[private]
_cargo board cmd:
_cargo board cmd extra_args="":
@read -r feat target chip <<< "$(just _info {{board}})"; \
env=""; extra=""; \
case "$target" in xtensa-*) \
@@ -76,7 +76,7 @@ _cargo board cmd:
[ -f "$HOME/export-esp.sh" ] && . "$HOME/export-esp.sh"; \
env="RUSTC=$(rustup which rustc --toolchain esp)"; extra="+nightly";; \
esac; \
eval $env cargo $extra {{cmd}} --target $target --features $feat
eval $env cargo $extra {{cmd}} --target "$target" --features "$feat" {{extra_args}}
# Check if a board's toolchain is available (silent, for build-all/check-all skipping)
[private]