Skip to content

Commit

Permalink
fix(clippy): allow unused_mut for not(feature = "libtor") (#4425)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sdbondi authored Aug 10, 2022
1 parent a481f89 commit 36ed59a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/tari_console_wallet/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 36ed59a

Please sign in to comment.