Skip to content

Commit

Permalink
Mark Error repr transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 18, 2020
1 parent 0a218a8 commit 3105a73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib.rs
Expand Up @@ -361,6 +361,7 @@ pub use anyhow as format_err;
/// # Ok(())
/// }
/// ```
#[repr(transparent)]
pub struct Error {
inner: ManuallyDrop<Box<ErrorImpl<()>>>,
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ffi.rs
@@ -1,4 +1,4 @@
#![warn(improper_ctypes, improper_ctypes_definitions)]
#![deny(improper_ctypes, improper_ctypes_definitions)]

use anyhow::anyhow;

Expand Down

0 comments on commit 3105a73

Please sign in to comment.