Skip to content

Commit 5e6a9a4

Browse files
committed
Clippy: Workaround for let_chains issue
1 parent 2422802 commit 5e6a9a4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/tools/clippy/src/driver.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,12 @@ fn track_files(parse_sess: &mut ParseSess, conf_path_string: Option<String>) {
9090

9191
// During development track the `clippy-driver` executable so that cargo will re-run clippy whenever
9292
// it is rebuilt
93-
if cfg!(debug_assertions)
94-
&& let Ok(current_exe) = env::current_exe()
95-
&& let Some(current_exe) = current_exe.to_str()
96-
{
97-
file_depinfo.insert(Symbol::intern(current_exe));
93+
if cfg!(debug_assertions) {
94+
if let Ok(current_exe) = env::current_exe()
95+
&& let Some(current_exe) = current_exe.to_str()
96+
{
97+
file_depinfo.insert(Symbol::intern(current_exe));
98+
}
9899
}
99100
}
100101

0 commit comments

Comments
 (0)