Skip to content

Commit 137f944

Browse files
author
Michael Wright
committed
Fix warnings
1 parent 5e23fce commit 137f944

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/use_self.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl LintPass for UseSelf {
5252

5353
const SEGMENTS_MSG: &str = "segments should be composed of at least 1 element";
5454

55-
fn span_use_self_lint(cx: &LateContext, path: &Path) {
55+
fn span_use_self_lint(cx: &LateContext<'_, '_>, path: &Path) {
5656
span_lint_and_sugg(
5757
cx,
5858
USE_SELF,
@@ -104,7 +104,7 @@ fn check_trait_method_impl_decl<'a, 'tcx: 'a>(
104104
item_path: &'a Path,
105105
impl_item: &ImplItem,
106106
impl_decl: &'tcx FnDecl,
107-
impl_trait_ref: &ty::TraitRef,
107+
impl_trait_ref: &ty::TraitRef<'_>,
108108
) {
109109
let trait_method = cx
110110
.tcx

0 commit comments

Comments
 (0)