Skip to content

Commit f546633

Browse files
committed
Remove unnecessary lint allow attrs on example
1 parent e9920ef commit f546633

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

library/alloc/src/boxed.rs

-2
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,11 @@
9999
//! pub struct Foo;
100100
//!
101101
//! #[no_mangle]
102-
//! #[allow(improper_ctypes_definitions)]
103102
//! pub extern "C" fn foo_new() -> Box<Foo> {
104103
//! Box::new(Foo)
105104
//! }
106105
//!
107106
//! #[no_mangle]
108-
//! #[allow(improper_ctypes_definitions)]
109107
//! pub extern "C" fn foo_delete(_: Option<Box<Foo>>) {}
110108
//! ```
111109
//!

0 commit comments

Comments
 (0)