]> git.lizzy.rs Git - rust.git/commitdiff
Fix warnings
authorMichael Wright <mikerite@lavabit.com>
Wed, 25 Jul 2018 04:34:29 +0000 (06:34 +0200)
committerMichael Wright <mikerite@lavabit.com>
Wed, 25 Jul 2018 04:34:29 +0000 (06:34 +0200)
clippy_lints/src/use_self.rs

index 82a571b0caf83d1ba21982ca08580f23c6a33f6e..8c633423cf6cb1c3c263a02cd6238fe1e202b802 100644 (file)
@@ -52,7 +52,7 @@ fn get_lints(&self) -> LintArray {
 
 const SEGMENTS_MSG: &str = "segments should be composed of at least 1 element";
 
-fn span_use_self_lint(cx: &LateContext, path: &Path) {
+fn span_use_self_lint(cx: &LateContext<'_, '_>, path: &Path) {
     span_lint_and_sugg(
         cx,
         USE_SELF,
@@ -104,7 +104,7 @@ fn check_trait_method_impl_decl<'a, 'tcx: 'a>(
     item_path: &'a Path,
     impl_item: &ImplItem,
     impl_decl: &'tcx FnDecl,
-    impl_trait_ref: &ty::TraitRef,
+    impl_trait_ref: &ty::TraitRef<'_>,
 ) {
     let trait_method = cx
         .tcx