Skip to content

Commit b2b911b

Browse files
committed
fixing build
1 parent 027e92d commit b2b911b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/ci.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
rust: [nightly, beta, stable, 1.67.0, 1.70.0, 1.74.0]
24+
rust: [nightly, beta, stable, 1.70.0, 1.74.0]
2525
os: [ubuntu]
2626
include:
2727
- name: Cargo on macOS
@@ -60,13 +60,6 @@ jobs:
6060
shell: bash
6161
- run: cargo run --manifest-path demo/Cargo.toml
6262
- run: cargo test --workspace ${{steps.testsuite.outputs.exclude}}
63-
if: matrix.rust != '1.67.0'
64-
- run: cargo check --no-default-features --features alloc
65-
env:
66-
RUSTFLAGS: --cfg compile_error_if_std ${{env.RUSTFLAGS}}
67-
- run: cargo check --no-default-features
68-
env:
69-
RUSTFLAGS: --cfg compile_error_if_alloc --cfg cxx_experimental_no_alloc ${{env.RUSTFLAGS}}
7063
- uses: actions/upload-artifact@v4
7164
if: matrix.os == 'ubuntu' && matrix.rust == 'nightly' && always()
7265
with:

demo/src/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ mod ffi {
1010
extern "Rust" {
1111
type MultiBuf;
1212

13-
fn next_chunk(buf: &mut MultiBuf) -> &[u8];
13+
#[allow(clippy::needless_lifetimes)]
14+
unsafe fn next_chunk<'a>(buf: &'a mut MultiBuf) -> &'a [u8];
1415
}
1516

1617
// C++ types and signatures exposed to Rust.

0 commit comments

Comments
 (0)