1
Fork 0

Clippy: Workaround for let_chains issue

This commit is contained in:
Philipp Krones 2022-11-22 14:30:29 +01:00
parent 242280252d
commit 5e6a9a40a9
No known key found for this signature in database
GPG key ID: 1CA0DF2AF59D68A5

View file

@ -90,11 +90,12 @@ fn track_files(parse_sess: &mut ParseSess, conf_path_string: Option<String>) {
// During development track the `clippy-driver` executable so that cargo will re-run clippy whenever
// it is rebuilt
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));
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));
}
}
}