diff --git a/src/libstd/net_url.rs b/src/libstd/net_url.rs index 72282780ef0e..3a3aae1ef6db 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]