Skip to content

Commit

Permalink
chore: silence macro definition warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Jul 8, 2015
1 parent 7531252 commit 1528038
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ macro_rules! simple_enum {
}

impl $e {
#[allow(dead_code)]
pub fn variants() -> Vec<&'static str> {
vec![
$(stringify!($v),)+
Expand Down Expand Up @@ -427,6 +428,7 @@ macro_rules! arg_enum {
}

impl $e {
#[allow(dead_code)]
fn variants() -> Vec<&'static str> {
vec![
$(stringify!($v),)+
Expand Down Expand Up @@ -469,6 +471,7 @@ macro_rules! arg_enum {
}

impl $e {
#[allow(dead_code)]
pub fn variants() -> Vec<&'static str> {
vec![
$(stringify!($v),)+
Expand Down Expand Up @@ -512,6 +515,7 @@ macro_rules! arg_enum {
}

impl $e {
#[allow(dead_code)]
pub fn variants() -> Vec<&'static str> {
vec![
$(stringify!($v),)+
Expand Down Expand Up @@ -555,6 +559,7 @@ macro_rules! arg_enum {
}

impl $e {
#[allow(dead_code)]
pub fn variants() -> Vec<&'static str> {
vec![
$(stringify!($v),)+
Expand Down

0 comments on commit 1528038

Please sign in to comment.