mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
Remove obsolete restriction in code
This commit is contained in:
+5
-10
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user