master
Yu Chen 5 years ago
parent cf54a7b958
commit 492b9e2dce

@ -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

@ -4,5 +4,5 @@ members = [
"ch01-02",
"ch01-03",
"ch02-02",
"ch02-03",
# "ch02-03",
]

@ -1,5 +1,5 @@
// ANCHOR: handle
use super::{DummyObject, KernelObject, Rights};
use super::{KernelObject, Rights};
use alloc::sync::Arc;
/// 内核对象句柄

Loading…
Cancel
Save