Skip to content

Commit ac7c87e

Browse files
Remove obsolete restriction in code (#14851)
changelog: none
2 parents ebc2a68 + db42c7d commit ac7c87e

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/driver.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,11 @@ fn track_files(psess: &mut ParseSess) {
9696

9797
// During development track the `clippy-driver` executable so that cargo will re-run clippy whenever
9898
// it is rebuilt
99-
#[expect(
100-
clippy::collapsible_if,
101-
reason = "Due to a bug in let_chains this if statement can't be collapsed"
102-
)]
103-
if cfg!(debug_assertions) {
104-
if let Ok(current_exe) = env::current_exe()
105-
&& let Some(current_exe) = current_exe.to_str()
106-
{
107-
file_depinfo.insert(Symbol::intern(current_exe));
108-
}
99+
if cfg!(debug_assertions)
100+
&& let Ok(current_exe) = env::current_exe()
101+
&& let Some(current_exe) = current_exe.to_str()
102+
{
103+
file_depinfo.insert(Symbol::intern(current_exe));
109104
}
110105
}
111106

0 commit comments

Comments
 (0)