From dfe1f6260e7e076114b95b42053cf6dc4cbaca68 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 3 Aug 2012 11:22:35 -0700 Subject: rustc: Remove all fixed-length strings from our codebase --- src/libsyntax/ext/pipes/pipec.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs index 00fd5d41f93..81c8ba9da50 100644 --- a/src/libsyntax/ext/pipes/pipec.rs +++ b/src/libsyntax/ext/pipes/pipec.rs @@ -71,13 +71,13 @@ impl compile of gen_send for message { if this.proto.is_bounded() { let (sp, rp) = alt (this.dir, next.dir) { - (send, send) { ("c", "s") } - (send, recv) { ("s", "c") } - (recv, send) { ("s", "c") } - (recv, recv) { ("c", "s") } + (send, send) { (~"c", ~"s") } + (send, recv) { (~"s", ~"c") } + (recv, send) { (~"s", ~"c") } + (recv, recv) { (~"c", ~"s") } }; - body += "let b = pipe.reuse_buffer();\n"; + body += ~"let b = pipe.reuse_buffer();\n"; body += fmt!{"let %s = pipes::send_packet_buffered(\ ptr::addr_of(b.buffer.data.%s));\n", sp, *next.name}; -- cgit 1.4.1-3-g733a5