Fix warnings
This commit is contained in:
parent
5e23fcec0b
commit
137f944315
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ impl LintPass for UseSelf {
|
|||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue