chore: Fix error by cfg-guarding the declaration of filename
and not just its use
This commit is contained in:
parent
63793a32ff
commit
28c2eb59e7
1 changed files with 2 additions and 2 deletions
|
@ -8,10 +8,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
if args.len() < 2 {
|
if args.len() < 2 {
|
||||||
return Err(format!("Usage: {} <filename>", args[0]).into());
|
return Err(format!("Usage: {} <filename>", args[0]).into());
|
||||||
}
|
}
|
||||||
|
|
||||||
let filename = &*args[1];
|
|
||||||
#[cfg(feature = "_deflate-any")]
|
#[cfg(feature = "_deflate-any")]
|
||||||
{
|
{
|
||||||
|
let filename = &*args[1];
|
||||||
doit(filename)?;
|
doit(filename)?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Reference in a new issue