mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 07:12:32 +00:00
chore: silences unused macro warning for debug macros
This commit is contained in:
parent
39fae92997
commit
46c1317203
1 changed files with 2 additions and 1 deletions
|
@ -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) |
|
||||
|
@ -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)));
|
||||
|
|
Loading…
Reference in a new issue