diff --git a/src/types.rs b/src/types.rs index 36513339f746..c3fd333a5b8e 100644 --- a/src/types.rs +++ b/src/types.rs @@ -17,7 +17,7 @@ declare_lint!(CLIPPY_DLIST, Warn, /// Matches a type with a provided string, and returns its type parameters if successful pub fn match_ty_unwrap<'a>(ty: &'a Ty, segments: &[&str]) -> Option<&'a [P]> { match ty.node { - TyPath(Path {segments: ref seg, ..}, _, _) => { + TyPath(Path {segments: ref seg, ..}, _) => { // So ast::Path isn't the full path, just the tokens that were provided. // I could muck around with the maps and find the full path // however the more efficient way is to simply reverse the iterators and zip them @@ -81,4 +81,4 @@ impl LintPass for TypePass { } } } -} \ No newline at end of file +}