about summary refs log tree commit diff
path: root/src/patterns.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2016-09-16 15:19:18 +1200
committerNick Cameron <ncameron@mozilla.com>2016-09-16 15:28:02 +1200
commit4418fab4f24e6497aa2a1f71bb4cf963c2971a28 (patch)
tree14fb7740585773063b6db5b6101dacad50aa2ea0 /src/patterns.rs
parentf9712b075eae4929eb813459994b58d00b143bbe (diff)
Update to latest Syntex
+ Cargo update
+ 0.6.2 release
Diffstat (limited to 'src/patterns.rs')
-rw-r--r--src/patterns.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/patterns.rs b/src/patterns.rs
index b52eeb9c445..1aaa28b853a 100644
--- a/src/patterns.rs
+++ b/src/patterns.rs
@@ -54,9 +54,6 @@ impl Rewrite for Pat {
                     None
                 }
             }
-            PatKind::QPath(ref q_self, ref path) => {
-                rewrite_path(context, true, Some(q_self), path, width, offset)
-            }
             PatKind::Range(ref lhs, ref rhs) => {
                 rewrite_pair(&**lhs, &**rhs, "", "...", "", context, width, offset)
             }
@@ -67,7 +64,9 @@ impl Rewrite for Pat {
             PatKind::Tuple(ref items, dotdot_pos) => {
                 rewrite_tuple_pat(items, dotdot_pos, None, self.span, context, width, offset)
             }
-            PatKind::Path(ref path) => rewrite_path(context, true, None, path, width, offset),
+            PatKind::Path(ref q_self, ref path) => {
+                rewrite_path(context, true, q_self.as_ref(), path, width, offset)
+            }
             PatKind::TupleStruct(ref path, ref pat_vec, dotdot_pos) => {
                 let path_str = try_opt!(rewrite_path(context, true, None, path, width, offset));
                 rewrite_tuple_pat(pat_vec,