From 3a9fda7c7b0ef888298bffb71018e2a4dc26e877 Mon Sep 17 00:00:00 2001 From: Rohan Prinja Date: Thu, 4 Dec 2014 18:05:49 +0530 Subject: [PATCH] Path has only 2 fields now See also: https://github.com/phildawes/racer/pull/72 --- src/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.rs b/src/types.rs index 36513339f74..c3fd333a5b8 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 +}