Update the 100-line kernel and format it as well

This commit is contained in:
Zhang Junyang
2024-07-04 15:19:44 +00:00
committed by Tate, Hongliang Tian
parent 71a486b9a5
commit 20524ae64a
2 changed files with 19 additions and 6 deletions

View File

@ -29,6 +29,14 @@ else
cargo fmt
fi
# Format the 100-line kernel demo as well
KERNEL_DEMO_FILE="$WORKSPACE_ROOT/osdk/tests/examples_in_book/write_a_kernel_in_100_lines_templates/lib.rs"
if [ "$CHECK_MODE" = true ]; then
cargo fmt --check -- $KERNEL_DEMO_FILE
else
cargo fmt -- $KERNEL_DEMO_FILE
fi
for CRATE in $EXCLUDED_CRATES; do
CRATE_DIR="$WORKSPACE_ROOT/$CRATE"