mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
std: Implement to_str for net::url::url
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user