mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 14:40:32 +00:00
Use OnceCell
instead of Once
This commit is contained in:
parent
091239ee60
commit
b3a690f5a1
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ fn check_missing_inline_attrs(cx: &LateContext<'_, '_>, attrs: &[ast::Attribute]
|
|||
fn is_executable(cx: &LateContext<'_, '_>) -> bool {
|
||||
use rustc_session::config::CrateType;
|
||||
|
||||
cx.tcx.sess.crate_types.get().iter().any(|t: &CrateType| match t {
|
||||
cx.tcx.sess.crate_types().iter().any(|t: &CrateType| match t {
|
||||
CrateType::Executable => true,
|
||||
_ => false,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue