diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-05-15 21:44:28 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-05-22 13:31:02 -0700 |
| commit | b3a690f5a1791dae79ab3dbbb3252e05f318adeb (patch) | |
| tree | d071fe138fd5e226b8b70f6c617a5577d704d468 | |
| parent | 091239ee6081d266ae59cc0660cc177994eba8d0 (diff) | |
| download | rust-b3a690f5a1791dae79ab3dbbb3252e05f318adeb.tar.gz rust-b3a690f5a1791dae79ab3dbbb3252e05f318adeb.zip | |
Use `OnceCell` instead of `Once`
| -rw-r--r-- | clippy_lints/src/missing_inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/missing_inline.rs b/clippy_lints/src/missing_inline.rs index 5300fd2215b..3ad3d5aee4d 100644 --- a/clippy_lints/src/missing_inline.rs +++ b/clippy_lints/src/missing_inline.rs @@ -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, }) |
