diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-11 02:34:14 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-11 02:34:14 +1000 |
| commit | e8782eeb6327eb79b132cc3f71bfaf55310dde00 (patch) | |
| tree | 55be12fd3e32a320f11b3d7cf6125a825aede7c6 /src/libextra/net_url.rs | |
| parent | 2fa83c05035855f4b8f9a8b671d8d7cd69b60f8b (diff) | |
fix tests, remove some warnings
Diffstat (limited to 'src/libextra/net_url.rs')
| -rw-r--r-- | src/libextra/net_url.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libextra/net_url.rs b/src/libextra/net_url.rs index c85a866a04a..83cda31c680 100644 --- a/src/libextra/net_url.rs +++ b/src/libextra/net_url.rs @@ -19,7 +19,6 @@ use core::cmp::Eq; use core::io::{Reader, ReaderUtil}; use core::io; use core::hashmap::HashMap; -use core::str; use core::to_bytes; use core::uint; @@ -394,7 +393,7 @@ enum Input { // returns userinfo, host, port, and unparsed part, or an error fn get_authority(rawurl: &str) -> Result<(Option<UserInfo>, ~str, Option<~str>, ~str), ~str> { - if !raw_url.starts_with("//") { + if !rawurl.starts_with("//") { // there is no authority. return Ok((None, ~"", None, rawurl.to_str())); } |
