diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-01-24 11:37:36 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-01-24 16:24:31 -0800 |
| commit | 5085eb3c288c2611bb61f3ee46a187d3ca46ca64 (patch) | |
| tree | 3bdc383d0e275c0f6c928dc476a1676980439ff4 /src/libsyntax/ext | |
| parent | feab095d65d1e60a0d4d78f66c3f14ce1bc88f10 (diff) | |
| download | rust-5085eb3c288c2611bb61f3ee46a187d3ca46ca64.tar.gz rust-5085eb3c288c2611bb61f3ee46a187d3ca46ca64.zip | |
Convert pipes::Buffer into a struct
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/pipes/pipec.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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( |
