File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed
Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Rust CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ check-and-test :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+
18+ - name : Install Rust
19+ uses : dtolnay/rust-toolchain@stable
20+
21+ - name : Cache Cargo registry + build
22+ uses : actions/cache@v4
23+ with :
24+ path : |
25+ ~/.cargo/registry
26+ ~/.cargo/git
27+ target
28+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
29+
30+ - name : Rustfmt check
31+ run : cargo fmt --all -- --check
32+
33+ - name : Clippy lint
34+ run : cargo clippy --all-targets --all-features -- -D warnings
35+
36+ - name : Build release
37+ run : cargo build --release
38+
39+ - name : Run tests
40+ run : cargo test --all-targets
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ mod tests {
131131
132132 let stack = unsafe { buffer. as_mut_ptr ( ) . cast :: < FreeStack > ( ) . as_mut ( ) } . unwrap ( ) ;
133133 unsafe {
134- stack. reset ( max_capacity as u16 ) ;
134+ stack. reset ( max_capacity) ;
135135 }
136136 assert ! ( stack. is_full( ) ) ;
137137
You can’t perform that action at this time.
0 commit comments