diff options
| author | Philipp Krones <hello@philkrones.com> | 2022-11-22 14:30:29 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2022-11-22 14:30:29 +0100 |
| commit | 5e6a9a40a90046a645e11a047ac2bd1d2dbbf456 (patch) | |
| tree | c01d1848a0f870c244d2744c2bde529510b4fafd | |
| parent | 242280252d741f720f31b36309c9e2b37fc44fa7 (diff) | |
| download | rust-5e6a9a40a90046a645e11a047ac2bd1d2dbbf456.tar.gz rust-5e6a9a40a90046a645e11a047ac2bd1d2dbbf456.zip | |
Clippy: Workaround for let_chains issue
| -rw-r--r-- | src/tools/clippy/src/driver.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/tools/clippy/src/driver.rs b/src/tools/clippy/src/driver.rs index ee2a3ad20d3..ad6132a49ba 100644 --- a/src/tools/clippy/src/driver.rs +++ b/src/tools/clippy/src/driver.rs @@ -90,11 +90,12 @@ fn track_files(parse_sess: &mut ParseSess, conf_path_string: Option<String>) { // During development track the `clippy-driver` executable so that cargo will re-run clippy whenever // it is rebuilt - if cfg!(debug_assertions) - && let Ok(current_exe) = env::current_exe() - && let Some(current_exe) = current_exe.to_str() - { - file_depinfo.insert(Symbol::intern(current_exe)); + if cfg!(debug_assertions) { + if let Ok(current_exe) = env::current_exe() + && let Some(current_exe) = current_exe.to_str() + { + file_depinfo.insert(Symbol::intern(current_exe)); + } } } |
