Clippy: Workaround for let_chains issue
This commit is contained in:
parent
242280252d
commit
5e6a9a40a9
1 changed files with 6 additions and 5 deletions
|
@ -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
|
// During development track the `clippy-driver` executable so that cargo will re-run clippy whenever
|
||||||
// it is rebuilt
|
// it is rebuilt
|
||||||
if cfg!(debug_assertions)
|
if cfg!(debug_assertions) {
|
||||||
&& let Ok(current_exe) = env::current_exe()
|
if let Ok(current_exe) = env::current_exe()
|
||||||
&& let Some(current_exe) = current_exe.to_str()
|
&& let Some(current_exe) = current_exe.to_str()
|
||||||
{
|
{
|
||||||
file_depinfo.insert(Symbol::intern(current_exe));
|
file_depinfo.insert(Symbol::intern(current_exe));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue