Skip to content

Commit 9cae8aa

Browse files
committed
Auto merge of #4225 - jeremystucki:refactoring, r=flip1995
Remove needless lifetimes changelog: none
2 parents 9617f97 + 6dc8084 commit 9cae8aa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clippy_lints/src/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl Constant {
154154
}
155155

156156
/// Parses a `LitKind` to a `Constant`.
157-
pub fn lit_to_constant<'tcx>(lit: &LitKind, ty: Ty<'tcx>) -> Constant {
157+
pub fn lit_to_constant(lit: &LitKind, ty: Ty<'_>) -> Constant {
158158
use syntax::ast::*;
159159

160160
match *lit {

clippy_lints/src/missing_inline.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn check_missing_inline_attrs(cx: &LateContext<'_, '_>, attrs: &[ast::Attribute]
6868
}
6969
}
7070

71-
fn is_executable<'a, 'tcx>(cx: &LateContext<'a, 'tcx>) -> bool {
71+
fn is_executable(cx: &LateContext<'_, '_>) -> bool {
7272
use rustc::session::config::CrateType;
7373

7474
cx.tcx.sess.crate_types.get().iter().any(|t: &CrateType| match t {

clippy_lints/src/utils/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ pub fn resolve_node(cx: &LateContext<'_, '_>, qpath: &QPath, id: HirId) -> Res {
342342

343343
/// Returns the method names and argument list of nested method call expressions that make up
344344
/// `expr`.
345-
pub fn method_calls<'a>(expr: &'a Expr, max_depth: usize) -> (Vec<Symbol>, Vec<&'a [Expr]>) {
345+
pub fn method_calls(expr: &Expr, max_depth: usize) -> (Vec<Symbol>, Vec<&[Expr]>) {
346346
let mut method_names = Vec::with_capacity(max_depth);
347347
let mut arg_lists = Vec::with_capacity(max_depth);
348348

0 commit comments

Comments
 (0)