diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 000332a..3997edf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,8 @@ jobs: run: | cd code cargo fmt --all -- --check + cd ../ch02-03 + cargo fmt --all -- --check # uses: actions-rs/cargo@v1 # with: # command: fmt @@ -29,6 +31,8 @@ jobs: run: | cd code cargo clippy + cd ../ch02-03 + cargo clippy # uses: actions-rs/cargo@v1 # with: # command: clippy @@ -50,10 +54,11 @@ jobs: run: | cd code cargo build + cd ../ch02-03 + cargo build # uses: actions-rs/cargo@v1 # with: # command: build - test: runs-on: ${{ matrix.os }} strategy: @@ -72,3 +77,5 @@ jobs: run: | cd code cargo test + cd ../ch02-03 + cargo test diff --git a/code/Cargo.toml b/code/Cargo.toml index 94ab6b8..4d425da 100644 --- a/code/Cargo.toml +++ b/code/Cargo.toml @@ -4,5 +4,5 @@ members = [ "ch01-02", "ch01-03", "ch02-02", - "ch02-03", +# "ch02-03", ] diff --git a/code/ch01-03/src/object/handle.rs b/code/ch01-03/src/object/handle.rs index 592282d..58a0b47 100644 --- a/code/ch01-03/src/object/handle.rs +++ b/code/ch01-03/src/object/handle.rs @@ -1,5 +1,5 @@ // ANCHOR: handle -use super::{DummyObject, KernelObject, Rights}; +use super::{KernelObject, Rights}; use alloc::sync::Arc; /// 内核对象句柄