1
Fork 0

Remove unnecessary lint allow attrs on example

This commit is contained in:
Mikail Bagishov 2021-02-12 12:46:02 +03:00
parent e9920ef774
commit f546633cf8
No known key found for this signature in database
GPG key ID: 63CF4B1F9D921A40

View file

@ -99,13 +99,11 @@
//! pub struct Foo;
//!
//! #[no_mangle]
//! #[allow(improper_ctypes_definitions)]
//! pub extern "C" fn foo_new() -> Box<Foo> {
//! Box::new(Foo)
//! }
//!
//! #[no_mangle]
//! #[allow(improper_ctypes_definitions)]
//! pub extern "C" fn foo_delete(_: Option<Box<Foo>>) {}
//! ```
//!