diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-02-03 20:47:26 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-02-03 20:47:26 -0800 |
| commit | 9adfa59d8e9432eef84297b6ed5d8f2967b9b8f9 (patch) | |
| tree | 7a0c4a0e10601298c67939598fa173a0e72e9408 /src/libsyntax/ext | |
| parent | 9556629da2284757efcb543fa5e27c0c94fc5e10 (diff) | |
| download | rust-9adfa59d8e9432eef84297b6ed5d8f2967b9b8f9.tar.gz rust-9adfa59d8e9432eef84297b6ed5d8f2967b9b8f9.zip | |
core: convert ToStr::to_str to take explicit &self
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/pipes/proto.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/pipes/proto.rs b/src/libsyntax/ext/pipes/proto.rs index 5c2dd82eb7f..6a1d9357694 100644 --- a/src/libsyntax/ext/pipes/proto.rs +++ b/src/libsyntax/ext/pipes/proto.rs @@ -34,8 +34,8 @@ pub impl direction : cmp::Eq { } pub impl direction: ToStr { - pure fn to_str() -> ~str { - match self { + pure fn to_str(&self) -> ~str { + match *self { send => ~"Send", recv => ~"Recv" } |
