Remove obsolete restriction in code
This commit is contained in:
parent
ebc2a68fe8
commit
db42c7dddc
1 changed files with 5 additions and 10 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue