Skip to content

Commit e9ea844

Browse files
committed
Fix warnings with Rust 1.46.0 - 1.51.0, inclusive
These ranges of rustc are pickier about where to place an #[allow(unused_doc_comments)] attribute. It caused warnings when building for BSD-based targets.
1 parent 06b5d33 commit e9ea844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ macro_rules! libc_enum {
113113
$v enum $BitFlags {
114114
$($entries)*
115115
}
116-
#[allow(unused_doc_comment)]
117116
impl ::std::convert::TryFrom<$repr> for $BitFlags {
118117
type Error = $crate::Error;
118+
#[allow(unused_doc_comments)]
119119
fn try_from(x: $repr) -> $crate::Result<Self> {
120120
match x {
121121
$($try_froms)*

0 commit comments

Comments
 (0)