Skip to content

Commit c29963a

Browse files
committed
fixing build
1 parent 027e92d commit c29963a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)