Remove obsolete restriction in code

This commit is contained in:
Samuel Tardieu 2025-05-19 17:31:56 +02:00
parent ebc2a68fe8
commit db42c7dddc
No known key found for this signature in database
GPG key ID: BDDC3208C6FEAFA8

View file

@ -96,16 +96,11 @@ fn track_files(psess: &mut ParseSess) {
// During development track the `clippy-driver` executable so that cargo will re-run clippy whenever
// it is rebuilt
#[expect(
clippy::collapsible_if,
reason = "Due to a bug in let_chains this if statement can't be collapsed"
)]
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));
}
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));
}
}