Skip to content

Commit 725a73c

Browse files
committed
std: Implement to_str for net::url::url
1 parent 5312704 commit 725a73c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libstd/net_url.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ fn to_str(url: url) -> ~str {
179179
fragment]);
180180
}
181181

182+
impl of to_str::to_str for url {
183+
fn to_str() -> ~str {
184+
to_str(self)
185+
}
186+
}
187+
182188
#[cfg(test)]
183189
mod tests {
184190
#[test]

0 commit comments

Comments
 (0)