Skip to content

Commit

Permalink
Fix warnings with Rust 1.46.0 - 1.51.0, inclusive
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
asomers committed Aug 13, 2021
1 parent 06b5d33 commit e9ea844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros.rs
Expand Up @@ -113,9 +113,9 @@ macro_rules! libc_enum {
$v enum $BitFlags {
$($entries)*
}
#[allow(unused_doc_comment)]
impl ::std::convert::TryFrom<$repr> for $BitFlags {
type Error = $crate::Error;
#[allow(unused_doc_comments)]
fn try_from(x: $repr) -> $crate::Result<Self> {
match x {
$($try_froms)*
Expand Down

0 comments on commit e9ea844

Please sign in to comment.