From 5085eb3c288c2611bb61f3ee46a187d3ca46ca64 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Thu, 24 Jan 2013 11:37:36 -0800 Subject: Convert pipes::Buffer into a struct --- src/libsyntax/ext/pipes/pipec.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs index 6c12736b7ea..e53057cb312 100644 --- a/src/libsyntax/ext/pipes/pipec.rs +++ b/src/libsyntax/ext/pipes/pipec.rs @@ -357,10 +357,10 @@ impl protocol: gen_init { fn gen_init_bounded(ext_cx: ext_ctxt) -> @ast::expr { debug!("gen_init_bounded"); let buffer_fields = self.gen_buffer_init(ext_cx); - let buffer = quote_expr!( - ~{header: ::pipes::BufferHeader(), - data: $buffer_fields} - ); + let buffer = quote_expr!(~::pipes::Buffer { + header: ::pipes::BufferHeader(), + data: $buffer_fields, + }); let entangle_body = ext_cx.block_expr( ext_cx.block( -- cgit 1.4.1-3-g733a5