fix(clippy): allow unused_mut for not(feature = "libtor")
Description
Allows unused_mut for config variable if `not(all(unix, feature = "libtor"))`
Motivation and Context
mut is only required for `all(unix, feature = "libtor")`
How Has This Been Tested?
No clippy errors with/without libtor feature
@@ -99,7 +99,7 @@ fn main_inner() -> Result<(), ExitError> {
include_str!("../log4rs_sample.yml"),
)?;
- #[cfg_attr(feature = "libtor", allow(unused_mut))]
+ #[cfg_attr(not(all(unix, feature = "libtor")), allow(unused_mut))]
let mut config = ApplicationConfig::load_from(&cfg)?;
let runtime = tokio::runtime::Builder::new_multi_thread()
