fix cfg feature switches
This commit is contained in:
parent
302ba98cbd
commit
5e6044eaf5
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
use std::{fs::read_to_string, ops::Deref, path::Path, str::FromStr};
|
||||
cfg_if! {
|
||||
if #[cfg(save)] {
|
||||
if #[cfg(feature = "save")] {
|
||||
use std::path::PathBuf;
|
||||
}
|
||||
}
|
||||
|
@ -14,10 +14,10 @@ use clap::Parser;
|
|||
pub(super) struct Args {
|
||||
#[arg(short, long, value_parser = Instrument::from_str)]
|
||||
instrument: Option<Instrument>,
|
||||
#[cfg(save)]
|
||||
#[cfg(feature = "save")]
|
||||
#[arg(short, long)]
|
||||
output: Option<PathBuf>,
|
||||
#[cfg(play)]
|
||||
#[cfg(feature = "play")]
|
||||
#[arg(short, long)]
|
||||
silent: bool,
|
||||
score: Score,
|
||||
|
|
Loading…
Reference in a new issue