Skip to content

Commit

Permalink
Use OnceCell instead of Once
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed May 22, 2020
1 parent 091239e commit b3a690f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/missing_inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit b3a690f

Please sign in to comment.