Skip to content

Commit

Permalink
chore: silences unused macro warning for debug macros
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Nov 13, 2017
1 parent 39fae92 commit 46c1317
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ macro_rules! arg_enum {
type Err = String;

fn from_str(s: &str) -> ::std::result::Result<Self,Self::Err> {
#[allow(unused_imports)]
#[allow(unused_imports)]
use ::std::ascii::AsciiExt;
match s {
$(stringify!($v) |
Expand Down Expand Up @@ -771,6 +771,7 @@ macro_rules! wlnerr(

#[cfg(feature = "debug")]
#[cfg_attr(feature = "debug", macro_use)]
#[cfg_attr(feature = "debug", allow(unused_macros))]
mod debug_macros {
macro_rules! debugln {
($fmt:expr) => (println!(concat!("DEBUG:clap:", $fmt)));
Expand Down

0 comments on commit 46c1317

Please sign in to comment.