Remove another unnecessary lifetime

This commit is contained in:
flip1995 2019-06-21 14:41:52 +02:00
parent 746fbad98a
commit 6dc8084788
No known key found for this signature in database
GPG Key ID: 693086869D506637

View File

@ -68,7 +68,7 @@ fn check_missing_inline_attrs(cx: &LateContext<'_, '_>, attrs: &[ast::Attribute]
}
}
fn is_executable<'a>(cx: &LateContext<'a, '_>) -> bool {
fn is_executable(cx: &LateContext<'_, '_>) -> bool {
use rustc::session::config::CrateType;
cx.tcx.sess.crate_types.get().iter().any(|t: &CrateType| match t {