diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-07-28 16:05:06 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-07-28 16:05:06 -0700 |
| commit | 725a73c4d5eca5a7cbff019ea44e86623e9065fb (patch) | |
| tree | ee7ad0ec7ead024e02b895fead99ea1942e33517 /src | |
| parent | 5312704904df3a088581bbe75c1f19a04671c673 (diff) | |
std: Implement to_str for net::url::url
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/net_url.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstd/net_url.rs b/src/libstd/net_url.rs index 72282780ef0..3a3aae1ef6d 100644 --- a/src/libstd/net_url.rs +++ b/src/libstd/net_url.rs @@ -179,6 +179,12 @@ fn to_str(url: url) -> ~str { fragment]); } +impl of to_str::to_str for url { + fn to_str() -> ~str { + to_str(self) + } +} + #[cfg(test)] mod tests { #[test] |
