parent
0698fc6650
commit
9f591319dd
24 changed files with 87 additions and 86 deletions
|
@ -15,9 +15,9 @@ impl @~[u8]: ToBytes {
|
|||
}
|
||||
|
||||
impl ~str: ToBytes {
|
||||
fn to_bytes() -> ~[u8] { str::bytes(self) }
|
||||
fn to_bytes() -> ~[u8] { str::to_bytes(self) }
|
||||
}
|
||||
|
||||
impl @(~str): ToBytes {
|
||||
fn to_bytes() -> ~[u8] { str::bytes(*self) }
|
||||
fn to_bytes() -> ~[u8] { str::to_bytes(*self) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue