使用clap
的arg_enum
宏,我得到了这个警告:
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> src/main.rs:37:1
|
37 | / arg_enum!{
38 | | #[derive(Debug)]
39 | | pub enum Operation {
40 | | Add,
... |
47 | | }
48 | | }
| |_^
|
= note: #[warn(deprecated)] on by default
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
我该如何使它静音?我已经尝试在
arg_enum!
和 extern crate clap;
前面添加 #[allow(deprecated)]
, 但都没有效果。