From 39fd0992a1bb5a5e998e5ec5f7715e4c75cd1bde Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Thu, 7 Nov 2019 16:52:15 +0000 Subject: [PATCH] silence improper_ctypes warning This is actually a false positive, as the structs are only exposed to FFI as pointers, so they are effectively opaque from the non-Rust perspective The warning showed up in nightly after the following PR was merged: https://github.com/rust-lang/rust/pull/65134 --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 95fb5d0594..d056d8a731 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -230,6 +230,7 @@ //! [`stream_recv()`]: struct.Connection.html#method.stream_recv //! [HTTP/3 module]: h3/index.html +#![allow(improper_ctypes)] #![warn(missing_docs)] #[macro_use]