Skip to content

Commit

Permalink
Silence some dead_code warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Nov 2, 2021
1 parent a1694cd commit 11228f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bindgen/bitflags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ use syn::parse::{Parse, ParseStream, Parser, Result as ParseResult};
pub struct Bitflags {
attrs: Vec<syn::Attribute>,
vis: syn::Visibility,
#[allow(dead_code)]
struct_token: Token![struct],
name: syn::Ident,
#[allow(dead_code)]
colon_token: Token![:],
repr: syn::Type,
flags: Flags,
Expand Down Expand Up @@ -72,10 +74,13 @@ impl Parse for Bitflags {
#[derive(Debug)]
struct Flag {
attrs: Vec<syn::Attribute>,
#[allow(dead_code)]
const_token: Token![const],
name: syn::Ident,
#[allow(dead_code)]
equals_token: Token![=],
value: syn::Expr,
#[allow(dead_code)]
semicolon_token: Token![;],
}

Expand Down
1 change: 1 addition & 0 deletions src/bindgen/cargo/cargo_metadata.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![deny(missing_docs)]
#![allow(dead_code)]
//! Structured access to the output of `cargo metadata`
//! Usually used from within a `cargo-*` executable

Expand Down

0 comments on commit 11228f6

Please sign in to comment.